[ https://issues.apache.org/jira/browse/CLOUDSTACK-9704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038612#comment-16038612 ]
ASF subversion and git services commented on CLOUDSTACK-9704: ------------------------------------------------------------- Commit 7ea41a5641791a5fadb4b1d7f10b3bc5912e0283 in cloudstack's branch refs/heads/master from [~sateeshc] [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=7ea41a5 ] CLOUDSTACK-9704 Remove dependency on VmwareContext object to fetch system VM key file While remote executing commands/scripts through SSH in VR, ACS uses system vm keyfile. ACS is fetching this key file using VMwareContext object which encapsulates vCenter connection handle. This is inefficient because of dependency on getServiceContext() which means a vCenter connection handle which is not required just to fetch a file in name space in management server. Signed-off-by: Sateesh Chodapuneedi <sateesh.chodapune...@accelerite.com> > 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.15#6346)