From e7ed17eea4975931401d80e360cbd66e797ef258 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 21 Feb 2012 17:43:33 -0500 Subject: [PATCH] Delete security group after terminating instance. This patch slightly modifies the order of operations in the euca exercise script. It moves the deletion of the security group to the end, after the instance has been terminated. The reason this change must be made is because of this change proposed to nova: https://review.openstack.org/#change,4154 Without this change, when exercise.sh is run against this patch, the euca exercises will fail when the security group is deleted. Moving it to the end should make it pass, as the security group will no longer be in use. Change-Id: I9095a02c42173ed1837ec20b38d5ef00fe4474ec --- AUTHORS | 1 + exercises/euca.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index b1478273e8..5769f4f798 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,6 +16,7 @@ Jesse Andrews Johannes Erdfelt Justin Shepherd Kiall Mac Innes +Russell Bryant Scott Moser Todd Willey Tres Henry diff --git a/exercises/euca.sh b/exercises/euca.sh index 834e4ecf69..7f4869573f 100755 --- a/exercises/euca.sh +++ b/exercises/euca.sh @@ -74,9 +74,6 @@ fi # Revoke pinging euca-revoke -P icmp -s 0.0.0.0/0 -t -1:-1 $SECGROUP -# Delete group -euca-delete-group $SECGROUP - # Release floating address euca-disassociate-address $FLOATING_IP @@ -97,3 +94,6 @@ fi # Terminate instance euca-terminate-instances $INSTANCE + +# Delete group +euca-delete-group $SECGROUP