Browse code

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

Jenkins authored on 2014/09/29 19:28:57
Showing 1 changed files
... ...
@@ -171,6 +171,7 @@ function wait_for_VM_to_halt {
171 171
     echo "Waiting for the VM to halt.  Progress in-VM can be checked with vncviewer:"
172 172
     mgmt_ip=$(echo $XENAPI_CONNECTION_URL | tr -d -c '1234567890.')
173 173
     domid=$(get_domid "$GUEST_NAME")
174
+    sleep 20 # Wait for the vnc-port to be written
174 175
     port=$(xenstore-read /local/domain/$domid/console/vnc-port)
175 176
     echo "vncviewer -via root@$mgmt_ip localhost:${port:2}"
176 177
     while true; do