You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Jayapal Reddy (JIRA)" <ji...@apache.org> on 2013/12/16 09:59:07 UTC

[jira] [Commented] (CLOUDSTACK-5188) Password reset of vm on Xen and VMware does not work on first reboot

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848933#comment-13848933 ] 

Jayapal Reddy commented on CLOUDSTACK-5188:
-------------------------------------------

Hi,

I tried password reset with xenserver host using the script  http://people.apache.org/~tsp/cloud-set-guest-password. Enabled debug in the script (set -x).
I did could not reproduced this issue in xen.

If it is reproduces again, please attach the below mentioned logs.
1. MS logs
2. Password entries in VR before and after VM boot. (/var/cache/cloud/password)
3. Enable debug in password script and attach the logs password script on VM start.
Please find the blow logs:

Before Vm reboot:
root@r-4-VM:~# cat /var/cache/cloud/passwords
10.1.1.171=saved_password
10.1.1.4=vT9nithuq

After VM reboot:
root@r-4-VM:~# cat /var/cache/cloud/passwords
10.1.1.171=saved_password
10.1.1.4=saved_password

logs from the VM boot:

+ logger -t cloud 'Sending request to password server at 10.1.1.1'
++ wget -q -t 3 -T 20 -O - --header 'DomU_Request: send_my_password' 10.1.1.1:8080
+ password=$'vT9nithuq\r'
++ echo $'vT9nithuq\r'
++ tr -d '\r'
+ password=vT9nithuq
+ '[' 0 -eq 0 ']'
+ logger -t cloud 'Got response from server at 10.1.1.1'
+ case $password in
+ logger -t cloud 'VM got a valid password from server at 10.1.1.1'
+ password_received=1
+ break
+ '[' 1 == 0 ']'
+ logger -t cloud 'Changing password ...'
+ echo vT9nithuq
+ passwd --stdin root

> Password reset of vm on Xen and VMware does not work on first reboot
> --------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5188
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5188
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Test
>    Affects Versions: 4.2.1, 4.3.0
>         Environment: VMware and Xen
>            Reporter: Girish Shilamkar
>            Assignee: Jayapal Reddy
>            Priority: Blocker
>
> The issue was uncovered as test_vm_passwdenabled.py was consistently failing on Vmware and Xen. Note this issue is not seen on KVM.
> Procedure:
> 1. Create a vm
> 2. Enable password management. In vm do following:
> $ cd /etc/init.d
> $ wget http://people.apache.org/~tsp/cloud-set-guest-password
> $ chmod +x /etc/init.d/cloud-set-guest-password
> $ chkconfig --add cloud-set-guest-password
> 3. Stop vm
> 4. Create template from vm's volume
> 5. Delete vm
> 6. Create new vm from template created in step 4
> 7. Stop vm
> 8. Reset password
> 9. Start vm
> 10. Ssh to vm using password obtained in step 8
> The ssh to vm using new password will fail but ssh with old password works
> Now if vm is stopped and started again, the new password will work. Thus password is reset only on the second boot.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)