Browse code

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

Russell Bryant authored on 2012/02/22 07:43:33
Showing 2 changed files
... ...
@@ -16,6 +16,7 @@ Jesse Andrews <anotherjesse@gmail.com>
16 16
 Johannes Erdfelt <johannes.erdfelt@rackspace.com>
17 17
 Justin Shepherd <galstrom21@gmail.com>
18 18
 Kiall Mac Innes <kiall@managedit.ie>
19
+Russell Bryant <rbryant@redhat.com>
19 20
 Scott Moser <smoser@ubuntu.com>
20 21
 Todd Willey <xtoddx@gmail.com>
21 22
 Tres Henry <tres@treshenry.net>
... ...
@@ -74,9 +74,6 @@ fi
74 74
 # Revoke pinging
75 75
 euca-revoke -P icmp -s 0.0.0.0/0 -t -1:-1 $SECGROUP
76 76
 
77
-# Delete group
78
-euca-delete-group $SECGROUP
79
-
80 77
 # Release floating address
81 78
 euca-disassociate-address $FLOATING_IP
82 79
 
... ...
@@ -97,3 +94,6 @@ fi
97 97
 
98 98
 # Terminate instance
99 99
 euca-terminate-instances $INSTANCE
100
+
101
+# Delete group
102
+euca-delete-group $SECGROUP