Browse code

another attempt at pause/unpause

Jesse Andrews authored on 2011/10/28 06:06:33
Showing 1 changed files
... ...
@@ -130,9 +130,9 @@ fi
130 130
 # pause the VM and verify we can't ping it anymore
131 131
 nova pause $NAME
132 132
 
133
-sleep 1
133
+sleep 2
134 134
 
135
-if ( ping -c1 -w1 $FLOATING_IP ); then
135
+if ( ping -c1 -w1 $IP); then
136 136
     echo "Pause failure - ping shouldn't work"
137 137
     exit 1
138 138
 fi
... ...
@@ -140,9 +140,9 @@ fi
140 140
 # unpause the VM and verify we can ping it again
141 141
 nova unpause $NAME
142 142
 
143
-sleep 1
143
+sleep 2
144 144
 
145
-ping -c1 -w1 $FLOATING_IP
145
+ping -c1 -w1 $IP
146 146
 
147 147
 # dis-allow icmp traffic (ping)
148 148
 nova secgroup-delete-rule $SECGROUP icmp -1 -1 0.0.0.0/0