Sangeetha Hariharan created CLOUDSTACK-4482:
-----------------------------------------------

             Summary: getVMPassword() API call does not retuen password for Vms 
that are deployed with password enabled templates.
                 Key: CLOUDSTACK-4482
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4482
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
            Reporter: Sangeetha Hariharan


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 id 
found"

http://10.223.131.169:8080/client/api?command=getVMPassword&id=a974c8ab-e779-4de6-a1d1-26ac5c9c39cd&response=json&sessionkey=ciq%2FaAgf6%2Br1BiuGeyU2%2Fjic23s%3D&_=1377293331315

{ "getvmpasswordresponse" : 
{"uuidList":[{"uuid":"a974c8ab-e779-4de6-a1d1-26ac5c9c39cd","description":"vmId"}],"errorcode":431,"cserrorcode":4350,"errortext":"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:null) 
===START===  10.215.3.9 -- GET  
command=getVMPassword&id=a974c8ab-e779-4de6-a1d1-26ac5c9c39cd&response=json&sessionkey=ciq%2FaAgf6%2Br1BiuGeyU2%2Fjic23s%3D&_=1377293331315
2013-08-23 14:18:03,251 DEBUG [cloud.user.AccountManagerImpl] 
(catalina-exec-25:null) Access to VM[User|pass-2] granted to 
Acct[806a5eea-3861-4224-bfc4-59f0fc46a1af-tan] by 
DomainChecker_EnhancerByCloudStack_be12c9e3
2013-08-23 14:18:03,253 INFO  [cloud.api.ApiServer] (catalina-exec-25:null) No 
password for VM with specified id found.
2013-08-23 14:18:03,253 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) 
===END===  10.215.3.9 -- GET  
command=getVMPassword&id=a974c8ab-e779-4de6-a1d1-26ac5c9c39cd&response=json&sessionkey=ciq%2FaAgf6%2Br1BiuGeyU2%2Fjic23s%3D&_=1377293331315





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to