Hi Maurice, Comments inline,
On 27-Apr-2013, at 1:52 AM, Maurice Lawler <maurice.law...@me.com<mailto:maurice.law...@me.com>> wrote: root@CentOS63 ~]# bash -x /etc/init.d/cloud-set-guest-password + user=root + DHCP_FOLDERS='/var/lib/dhclient/* /var/lib/dhcp3/* /var/lib/dhcp/*' + password_received=0 + file_count=0 + error_count=0 + for DHCP_FILE in '$DHCP_FOLDERS' The password reset is attempted for every file in '/var/lib/dhclient/* /var/lib/dhcp3/* /var/lib/dhcp/*', + '[' -f /var/lib/dhclient/dhclient-eth0.leases ']' So it found /var/lib/dhclient/dhclient-eth0.leases + file_count=1 ++ tr -d '\;' ++ awk '{print $NF}' ++ tail -1 ++ grep dhcp-server-identifier /var/lib/dhclient/dhclient-eth0.leases + PASSWORD_SERVER_IP=IP.OF.INSTANCE + '[' -n IPOFINSTANCE]' + logger -t cloud 'Found password server IP IP.OF.INSTANCE in /var/lib/dhclient/dhclient-eth0.leases' + logger -t cloud 'Sending request to password server at 66.232.104.214' And it found the password server correctly. ++ wget -q -t 3 -T 20 -O - --header 'DomU_Request: send_my_password' IP.OF.INSTANCE:8080 + password=$'saved_password\r' ++ tr -d '\r' ++ echo $'saved_password\r' + password=saved_password Its found the new password. + '[' 0 -eq 0 ']' + logger -t cloud 'Got response from server at IP.OF.INSTANCE' + case $password in + logger -t cloud 'VM has already saved a password from the password server at IP.OF.INSTANCE' Looks like it has already saved the password once before. + continue + for DHCP_FILE in '$DHCP_FOLDERS' + '[' -f /var/lib/dhclient/resolv.conf.predhclient.eth0 ']' + file_count=2 Now the look finds a 2nd file file /var/lib/dhclient/resolv.conf.predhclient.eth0 ++ tr -d '\;' ++ awk '{print $NF}' ++ tail -1 ++ grep dhcp-server-identifier /var/lib/dhclient/resolv.conf.predhclient.eth0 + PASSWORD_SERVER_IP= + '[' -n '' ']' + logger -t cloud 'Could not find password server IP in /var/lib/dhclient/resolv.conf.predhclient.eth0' Since resolv.conf.predhclient.eth0 is not a lease file, it can't find the password server. + error_count=1 + for DHCP_FILE in '$DHCP_FOLDERS' + '[' -f '/var/lib/dhcp3/*' ']' + for DHCP_FILE in '$DHCP_FOLDERS' + '[' -f '/var/lib/dhcp/*' ']' + '[' 0 == 0 ']' + '[' 1 == 2 ']' + logger -t cloud 'Did not need to change password.' + exit 0 [root@CentOS63 ~]# The attempt to grep the password server from resolv.conf.predhclient.eth0 will fail as it is not a valid lease file. This is as expected. No issues here. Ok, so by the looks of it - the password set script is working and it has succeeded previously. Hth. -- Shanker Balan Managing Consultant [cid:E7CE8425-E245-4C99-B967-713DF2967392@local] M: +91 98860 60539 shanker.ba...@shapeblue.com<mailto:shanker.ba...@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue ShapeBlue India, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055 This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.