update the ping to ping, wait 5 second, really ping
This commit is contained in:
parent
d888e1cdcb
commit
da89268c92
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue