Merge "XenAPI: Fix race condition waiting for VM to start"

This commit is contained in:
Jenkins 2014-09-29 10:28:57 +00:00 committed by Gerrit Code Review
commit 114dc2adbf

View File

@ -171,6 +171,7 @@ function wait_for_VM_to_halt {
echo "Waiting for the VM to halt. Progress in-VM can be checked with vncviewer:"
mgmt_ip=$(echo $XENAPI_CONNECTION_URL | tr -d -c '1234567890.')
domid=$(get_domid "$GUEST_NAME")
sleep 20 # Wait for the vnc-port to be written
port=$(xenstore-read /local/domain/$domid/console/vnc-port)
echo "vncviewer -via root@$mgmt_ip localhost:${port:2}"
while true; do