We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6f5fdd + 5836b15 commit a205b46Copy full SHA for a205b46
exercises/floating_ips.sh
@@ -195,8 +195,11 @@ nova floating-ip-delete $TEST_FLOATING_IP
195
# shutdown the server
196
nova delete $VM_UUID
197
198
+# make sure the VM shuts down within a reasonable time
199
+if ! timeout $TERMINATE_TIMEOUT sh -c "while nova show $VM_UUID | grep status | grep -q ACTIVE; do sleep 1; done"; then
200
+ echo "server didn't shut down!"
201
+ exit 1
202
+fi
203
+
204
# Delete a secgroup
205
nova secgroup-delete $SECGROUP
-
-# FIXME: validate shutdown within 5 seconds
-# (nova show $NAME returns 1 or status != ACTIVE)?
0 commit comments