... | ... |
@@ -128,6 +128,23 @@ sleep 5 |
128 | 128 |
# ping our floating ip |
129 | 129 |
ping -c1 -w1 $FLOATING_IP |
130 | 130 |
|
131 |
+# pause the VM and verify we can't ping it anymore |
|
132 |
+nova pause $NAME |
|
133 |
+ |
|
134 |
+sleep 1 |
|
135 |
+ |
|
136 |
+if ( ping -c1 -w1 $FLOATING_IP ); then |
|
137 |
+ echo "Pause failure - ping shouldn't work" |
|
138 |
+ exit 1 |
|
139 |
+fi |
|
140 |
+ |
|
141 |
+# unpause the VM and verify we can ping it again |
|
142 |
+nova unpause $NAME |
|
143 |
+ |
|
144 |
+sleep 1 |
|
145 |
+ |
|
146 |
+ping -c1 -w1 $FLOATING_IP |
|
147 |
+ |
|
131 | 148 |
# dis-allow icmp traffic (ping) |
132 | 149 |
nova secgroup-delete-rule $SECGROUP icmp -1 -1 0.0.0.0/0 |
133 | 150 |
|