another attempt at pause/unpause
This commit is contained in:
parent
293c2ef633
commit
467135e20c
1 changed files with 4 additions and 4 deletions
|
@ -130,9 +130,9 @@ fi
|
||||||
# pause the VM and verify we can't ping it anymore
|
# pause the VM and verify we can't ping it anymore
|
||||||
nova pause $NAME
|
nova pause $NAME
|
||||||
|
|
||||||
sleep 1
|
sleep 2
|
||||||
|
|
||||||
if ( ping -c1 -w1 $FLOATING_IP ); then
|
if ( ping -c1 -w1 $IP); then
|
||||||
echo "Pause failure - ping shouldn't work"
|
echo "Pause failure - ping shouldn't work"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -140,9 +140,9 @@ fi
|
||||||
# unpause the VM and verify we can ping it again
|
# unpause the VM and verify we can ping it again
|
||||||
nova unpause $NAME
|
nova unpause $NAME
|
||||||
|
|
||||||
sleep 1
|
sleep 2
|
||||||
|
|
||||||
ping -c1 -w1 $FLOATING_IP
|
ping -c1 -w1 $IP
|
||||||
|
|
||||||
# dis-allow icmp traffic (ping)
|
# dis-allow icmp traffic (ping)
|
||||||
nova secgroup-delete-rule $SECGROUP icmp -1 -1 0.0.0.0/0
|
nova secgroup-delete-rule $SECGROUP icmp -1 -1 0.0.0.0/0
|
||||||
|
|
Loading…
Reference in a new issue