Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 522F0200BFC for ; Fri, 30 Dec 2016 10:49:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 50F4D160B24; Fri, 30 Dec 2016 09:49:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9A647160B32 for ; Fri, 30 Dec 2016 10:48:59 +0100 (CET) Received: (qmail 93672 invoked by uid 500); 30 Dec 2016 09:48:58 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 93656 invoked by uid 500); 30 Dec 2016 09:48:58 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 93645 invoked by uid 99); 30 Dec 2016 09:48:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2016 09:48:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 858A62C0453 for ; Fri, 30 Dec 2016 09:48:58 +0000 (UTC) Date: Fri, 30 Dec 2016 09:48:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9704) Remove dependency on VmwareContext object to fetch system VM key file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Dec 2016 09:49:00 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15787344#comment-15787344 ] ASF GitHub Bot commented on CLOUDSTACK-9704: -------------------------------------------- Github user sureshanaparti commented on the issue: https://github.com/apache/cloudstack/pull/1862 @sateesh-chodapuneedi Code changes LGTM > Remove dependency on VmwareContext object to fetch system VM key file > --------------------------------------------------------------------- > > Key: CLOUDSTACK-9704 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9704 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Sateesh Chodapuneedi > Assignee: Sateesh Chodapuneedi > > While remote executing commands/scripts in VR, ACS uses system vm keyfile. ACS is fetching this key file using following code > {code:java} > VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME); > File systemVmKeyFile = mgr.getSystemVMKeyFile(); > {code} > This is inefficient because dependency on getServiceContext() in above code means a vCenter connection handle which is not required just to fetch a file in name space in management server. -- This message was sent by Atlassian JIRA (v6.3.4#6332)