Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 100AF10B7F for ; Tue, 27 Aug 2013 11:05:56 +0000 (UTC) Received: (qmail 369 invoked by uid 500); 27 Aug 2013 11:05:55 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 165 invoked by uid 500); 27 Aug 2013 11:05:54 -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 99927 invoked by uid 500); 27 Aug 2013 11:05:53 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 99920 invoked by uid 99); 27 Aug 2013 11:05:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 11:05:53 +0000 Date: Tue, 27 Aug 2013 11:05:51 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4482) getVMPassword() API call does not retuen password for Vms that are deployed with password enabled templates. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4482?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13751182#comment-13751182 ]=20 ASF subversion and git services commented on CLOUDSTACK-4482: ------------------------------------------------------------- Commit 37d500d2a6b71c267af20a83208eb6049157f95f in branch refs/heads/4.2-fo= rward from [~harikrishna.patnala] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3D37d500d ] CLOUDSTACK-4482: getVMPassword() API call does not return password for Vms = that are deployed with password enabled templates. Improving the error message saying no ssh key pair is assinged to VM to get= the encrypted password and included a check for password enabled template Signed-off-by: Koushik Das =20 > getVMPassword() API call does not retuen password for Vms that are deploy= ed with password enabled templates. > -------------------------------------------------------------------------= ----------------------------------- > > Key: CLOUDSTACK-4482 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-448= 2 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server > Affects Versions: 4.2.0 > Reporter: Sangeetha Hariharan > Assignee: Harikrishna Patnala > Fix For: 4.2.1 > > > Steps to reproduce the problem: > Provision a VM with password enabled templates. > Use getVMPassword() to get the password for this use VM. > We get the following error message - "No password for VM with specified i= d found" > http://10.223.131.169:8080/client/api?command=3DgetVMPassword&id=3Da974c8= ab-e779-4de6-a1d1-26ac5c9c39cd&response=3Djson&sessionkey=3Dciq%2FaAgf6%2Br= 1BiuGeyU2%2Fjic23s%3D&_=3D1377293331315 > { "getvmpasswordresponse" : {"uuidList":[{"uuid":"a974c8ab-e779-4de6-a1d1= -26ac5c9c39cd","description":"vmId"}],"errorcode":431,"cserrorcode":4350,"e= rrortext":"No password for VM with specified id found."} } > Management server logs: > 2013-08-23 14:18:03,240 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:nu= ll) =3D=3D=3DSTART=3D=3D=3D 10.215.3.9 -- GET command=3DgetVMPassword&id= =3Da974c8ab-e779-4de6-a1d1-26ac5c9c39cd&response=3Djson&sessionkey=3Dciq%2F= aAgf6%2Br1BiuGeyU2%2Fjic23s%3D&_=3D1377293331315 > 2013-08-23 14:18:03,251 DEBUG [cloud.user.AccountManagerImpl] (catalina-e= xec-25:null) Access to VM[User|pass-2] granted to Acct[806a5eea-3861-4224-b= fc4-59f0fc46a1af-tan] by DomainChecker_EnhancerByCloudStack_be12c9e3 > 2013-08-23 14:18:03,253 INFO [cloud.api.ApiServer] (catalina-exec-25:nul= l) No password for VM with specified id found. > 2013-08-23 14:18:03,253 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.215.3.9 -- GET command=3DgetVMPassword&id=3D= a974c8ab-e779-4de6-a1d1-26ac5c9c39cd&response=3Djson&sessionkey=3Dciq%2FaAg= f6%2Br1BiuGeyU2%2Fjic23s%3D&_=3D1377293331315 > Response when deploying the Vm has password field which I am able to use = successfully to log into the Vm: > | org.apache.cloudstack.api.response.UserVmResponse/virtualmachine/{"id":= "a974c8ab-e779-4de6-a1d1-26ac5c9c39cd","name":"pass-2","displayname":"pass-= 2","account":"tan","domainid":"1e424c36-0b6e-11e3-bc0b-067150000428","domai= n":"ROOT","created":"2013-08-23T11:17:08-0700","state":"Running","haenable"= :false,"zoneid":"93368e7c-db1b-4344-8777-2a6e0507c2ba","zonename":"zone1","= templateid":"dd5c6bb5-602a-4cc4-9328-a26096294cf7","templatename":"password= -template","templatedisplaytext":"password-template","passwordenabled":true= ,"serviceofferingid":"e83c2f9a-cbdc-46dc-8743-c76f3c270e99","serviceofferin= gname":"tiny1","cpunumber":1,"cpuspeed":50,"memory":124,"guestosid":"1e4bb9= ce-0b6e-11e3-bc0b-067150000428","rootdeviceid":0,"rootdevicetype":"ROOT","s= ecuritygroup":[],"password":"rJ3aivjax","nic":[{"id":"e9ed3363-1573-4f59-b2= cb-a32c8a3c023d","networkid":"95528f66-22f8-4932-86b6-96b1183d5693","networ= kname":"tan","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10= .1.1.149","isolationuri":"vlan://2309","broadcasturi":"vlan://2309","traffi= ctype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:4e:ad= :00:28"}],"hypervisor":"VMware","tags":[],"affinitygroup":[],"displayvm":tr= ue,"isdynamicallyscalable":false,"jobid":"850e7775-be7a-4216-b515-dcfc320b2= 260","jobstatus":0} | -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira