update the ping to ping, wait 5 second, really ping

This commit is contained in:
Jesse Andrews 2011-10-15 20:14:07 -07:00
parent d888e1cdcb
commit da89268c92

View file

@ -106,6 +106,12 @@ nova show $NAME | grep status | grep -q ACTIVE
IP=`nova show $NAME | grep "private network" | cut -d"|" -f3` IP=`nova show $NAME | grep "private network" | cut -d"|" -f3`
# ping it once (timeout of a second) # ping it once (timeout of a second)
ping -c1 -w1 $IP || true
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
# network to respond?), so let's wait 5 seconds and really test ping
sleep 5
ping -c1 -w1 $IP ping -c1 -w1 $IP
# shutdown the server # shutdown the server