From 467135e20cbdd180c81bf27756e72fc778d7e50d Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Thu, 27 Oct 2011 14:06:33 -0700 Subject: [PATCH] another attempt at pause/unpause --- exercise.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercise.sh b/exercise.sh index 9e7c5ae..f7dd175 100755 --- a/exercise.sh +++ b/exercise.sh @@ -130,9 +130,9 @@ fi # pause the VM and verify we can't ping it anymore 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" exit 1 fi @@ -140,9 +140,9 @@ fi # unpause the VM and verify we can ping it again nova unpause $NAME -sleep 1 +sleep 2 -ping -c1 -w1 $FLOATING_IP +ping -c1 -w1 $IP # dis-allow icmp traffic (ping) nova secgroup-delete-rule $SECGROUP icmp -1 -1 0.0.0.0/0