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 03452200BE8 for ; Fri, 23 Dec 2016 15:28:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0214F160B3B; Fri, 23 Dec 2016 14:28: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 71AC6160B1E for ; Fri, 23 Dec 2016 15:27:59 +0100 (CET) Received: (qmail 39772 invoked by uid 500); 23 Dec 2016 14:27: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 39753 invoked by uid 500); 23 Dec 2016 14:27:58 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 39748 invoked by uid 99); 23 Dec 2016 14:27:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 14:27:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 786772C1F5A for ; Fri, 23 Dec 2016 14:27:58 +0000 (UTC) Date: Fri, 23 Dec 2016 14:27:58 +0000 (UTC) From: "Sateesh Chodapuneedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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, 23 Dec 2016 14:28:00 -0000 Sateesh Chodapuneedi created CLOUDSTACK-9704: ------------------------------------------------ Summary: 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 While remote executing commands/scripts in VR, ACS uses system vm keyfile. ACS is fetching this key file using following code ``` VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME); File systemVmKeyFile = mgr.getSystemVMKeyFile(); ``` 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)