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/07/30 19:09:50 UTC

[jira] [Commented] (CLOUDSTACK-3956) vm password not set correctly with password enable template

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

Jayapal Reddy commented on CLOUDSTACK-3956:
-------------------------------------------

Used the below template.

http://10.147.28.7/templates/passwordssh/new-ssh-password-centos53.vhd

serve_password.sh debug logs

+ PASSWD_FILE=/var/cache/cloud/passwords
+ ip=10.1.1.67
+ logger -t cloud 'serve_password called to service a request for 10.1.1.67.'
+ read input
+ '[' 'GET / HTTP/1.0' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo GET / HTTP/1.0
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'User-Agent: Wget/1.11.4 Red Hat modified' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo User-Agent: Wget/1.11.4 Red Hat modified
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Accept: */*' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Accept: redundant_router/arping_gateways.sh.templ redundant_router/backup.sh.templ redundant_router/check_bumpup.sh redundant_router/check_heartbeat.sh.templ redundant_router/checkrouter.sh.templ redundant_router/conntrackd.conf.templ redundant_router/disable_pubip.sh redundant_router/enable_pubip.sh.templ redundant_router/fault.sh.templ redundant_router/heartbeat.sh.templ redundant_router/keepalived.conf.templ redundant_router/master.sh.templ redundant_router/primary-backup.sh.templ redundant_router/services.sh
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Host: 10.1.1.1:8080' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Host: 10.1.1.1:8080
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Connection: Keep-Alive' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Connection: Keep-Alive
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'DomU_request: send_my_password' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo DomU_request: send_my_password
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' '' == '' ']'
+ break
+ '[' '' == send_my_password ']'
+ '[' '' == saved_password ']'
+ logger -t cloud 'serve_password sent bad_request to 10.1.1.67.'
+ echo bad_request
bad_request
+ unlock_exit 0 passwdlock 1
+ releaseLockFile passwdlock 1
+ __LOCKDIR=/tmp
+ __LOCKFILE='/tmp/*-9065-passwdlock.lock'
+ __locked=1
+ '[' 1 == 1 ']'
+ rm /tmp/1375191685931163951-9065-passwdlock.lock
+ exit 0
+ PASSWD_FILE=/var/cache/cloud/passwords
+ ip=10.1.1.67
+ logger -t cloud 'serve_password called to service a request for 10.1.1.67.'
+ read input
+ '[' 'GET / HTTP/1.0' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo GET / HTTP/1.0
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'User-Agent: Wget/1.11.4 Red Hat modified' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo User-Agent: Wget/1.11.4 Red Hat modified
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Accept: */*' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Accept: redundant_router/arping_gateways.sh.templ redundant_router/backup.sh.templ redundant_router/check_bumpup.sh redundant_router/check_heartbeat.sh.templ redundant_router/checkrouter.sh.templ redundant_router/conntrackd.conf.templ redundant_router/disable_pubip.sh redundant_router/enable_pubip.sh.templ redundant_router/fault.sh.templ redundant_router/heartbeat.sh.templ redundant_router/keepalived.conf.templ redundant_router/master.sh.templ redundant_router/primary-backup.sh.templ redundant_router/services.sh
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Host: 10.1.1.1:8080' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Host: 10.1.1.1:8080
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Connection: Keep-Alive' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Connection: Keep-Alive
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'DomU_request: send_my_password' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo DomU_request: send_my_password
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' '' == '' ']'
+ break
+ '[' '' == send_my_password ']'
+ '[' '' == saved_password ']'
+ logger -t cloud 'serve_password sent bad_request to 10.1.1.67.'
+ echo bad_request
bad_request
+ unlock_exit 0 passwdlock 1
+ releaseLockFile passwdlock 1
+ __LOCKDIR=/tmp
+ __LOCKFILE='/tmp/*-9113-passwdlock.lock'
+ __locked=1
+ '[' 1 == 1 ']'
+ rm /tmp/1375191687008961244-9113-passwdlock.lock
+ exit 0
+ PASSWD_FILE=/var/cache/cloud/passwords
+ ip=10.1.1.67
+ logger -t cloud 'serve_password called to service a request for 10.1.1.67.'
+ read input
+ '[' 'GET / HTTP/1.0' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo GET / HTTP/1.0
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'User-Agent: Wget/1.11.4 Red Hat modified' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo User-Agent: Wget/1.11.4 Red Hat modified
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Accept: */*' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Accept: redundant_router/arping_gateways.sh.templ redundant_router/backup.sh.templ redundant_router/check_bumpup.sh redundant_router/check_heartbeat.sh.templ redundant_router/checkrouter.sh.templ redundant_router/conntrackd.conf.templ redundant_router/disable_pubip.sh redundant_router/enable_pubip.sh.templ redundant_router/fault.sh.templ redundant_router/heartbeat.sh.templ redundant_router/keepalived.conf.templ redundant_router/master.sh.templ redundant_router/primary-backup.sh.templ redundant_router/services.sh
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Host: 10.1.1.1:8080' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Host: 10.1.1.1:8080
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Connection: Keep-Alive' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Connection: Keep-Alive
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'DomU_request: send_my_password' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo DomU_request: send_my_password
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' '' == '' ']'
+ break
+ '[' '' == send_my_password ']'
+ '[' '' == saved_password ']'
+ logger -t cloud 'serve_password sent bad_request to 10.1.1.67.'
+ echo bad_request
bad_request
+ unlock_exit 0 passwdlock 1
+ releaseLockFile passwdlock 1
+ __LOCKDIR=/tmp
+ __LOCKFILE='/tmp/*-9161-passwdlock.lock'
+ __locked=1
+ '[' 1 == 1 ']'
+ rm /tmp/1375191689129402331-9161-passwdlock.lock
+ exit 0
+ PASSWD_FILE=/var/cache/cloud/passwords
+ ip=10.1.1.126
+ logger -t cloud 'serve_password called to service a request for 10.1.1.126.'
+ read input
+ '[' 'GET / HTTP/1.0' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo GET / HTTP/1.0
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'User-Agent: Wget/1.11.4 Red Hat modified' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo User-Agent: Wget/1.11.4 Red Hat modified
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Accept: */*' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Accept: redundant_router/arping_gateways.sh.templ redundant_router/backup.sh.templ redundant_router/check_bumpup.sh redundant_router/check_heartbeat.sh.templ redundant_router/checkrouter.sh.templ redundant_router/conntrackd.conf.templ redundant_router/disable_pubip.sh redundant_router/enable_pubip.sh.templ redundant_router/fault.sh.templ redundant_router/heartbeat.sh.templ redundant_router/keepalived.conf.templ redundant_router/master.sh.templ redundant_router/primary-backup.sh.templ redundant_router/services.sh
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Host: 10.1.1.1:8080' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Host: 10.1.1.1:8080
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Connection: Keep-Alive' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Connection: Keep-Alive
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'DomU_Request: send_my_password' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo DomU_Request: send_my_password
+ request=send_my_password
+ '[' send_my_password '!=' '' ']'
+ break
+ '[' send_my_password == send_my_password ']'
++ get_value /var/cache/cloud/passwords 10.1.1.126
++ local filename=/var/cache/cloud/passwords
++ local keyname=10.1.1.126
++ cut -d= -f2
++ grep -i 10.1.1.126= /var/cache/cloud/passwords
+ password=aM8cvterx
+ '[' aM8cvterx == '' ']'
+ logger -t cloud 'serve_password sent a password to 10.1.1.126.'
+ echo aM8cvterx
aM8cvterx
+ unlock_exit 0 passwdlock 1
+ releaseLockFile passwdlock 1
+ __LOCKDIR=/tmp
+ __LOCKFILE='/tmp/*-9398-passwdlock.lock'
+ __locked=1
+ '[' 1 == 1 ']'
+ rm /tmp/1375199545232270825-9398-passwdlock.lock
+ exit 0
+ PASSWD_FILE=/var/cache/cloud/passwords
+ ip=10.1.1.126
+ logger -t cloud 'serve_password called to service a request for 10.1.1.126.'
+ read input
+ '[' 'GET / HTTP/1.0' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo GET / HTTP/1.0
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'User-Agent: Wget/1.11.4 Red Hat modified' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo User-Agent: Wget/1.11.4 Red Hat modified
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Accept: */*' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Accept: redundant_router/arping_gateways.sh.templ redundant_router/backup.sh.templ redundant_router/check_bumpup.sh redundant_router/check_heartbeat.sh.templ redundant_router/checkrouter.sh.templ redundant_router/conntrackd.conf.templ redundant_router/disable_pubip.sh redundant_router/enable_pubip.sh.templ redundant_router/fault.sh.templ redundant_router/heartbeat.sh.templ redundant_router/keepalived.conf.templ redundant_router/master.sh.templ redundant_router/primary-backup.sh.templ redundant_router/services.sh
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Host: 10.1.1.1:8080' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Host: 10.1.1.1:8080
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'Connection: Keep-Alive' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo Connection: Keep-Alive
+ request=
+ '[' '' '!=' '' ']'
+ read input
+ '[' 'DomU_Request: send_my_password' == '' ']'
++ sed 's/^[ \t]*//'
++ cut -d: -f2
++ grep DomU_Request:
++ echo DomU_Request: send_my_password
+ request=send_my_password
+ '[' send_my_password '!=' '' ']'
+ break
+ '[' send_my_password == send_my_password ']'
++ get_value /var/cache/cloud/passwords 10.1.1.126
++ local filename=/var/cache/cloud/passwords
++ local keyname=10.1.1.126
++ cut -d= -f2
++ grep -i 10.1.1.126= /var/cache/cloud/passwords
+ password=aM8cvterx
+ '[' aM8cvterx == '' ']'
+ logger -t cloud 'serve_password sent a password to 10.1.1.126.'
+ echo aM8cvterx
aM8cvterx
                
> vm password not set correctly with password enable template
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-3956
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3956
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.2.0
>            Reporter: Jayapal Reddy
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> 1. Deploy user vm with with password enabled template.
> 2. Template has cloud-set-guest-password script in it.
> 3. observed that user vm is not able to log with the cloudstack generated password.
> More observations:
> 1. When created 8 vms created parallelly some of the vms set password correctly  some of them not. In this case rebooting vm set password correctly and logged in.
> 2. After the above test tried by deploy vm one after other. In this case also this issue is seen.

--
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