Skip to content

Commit e7ed17e

Browse files
committed
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
1 parent a3a496f commit e7ed17e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Jesse Andrews <[email protected]>
1616
Johannes Erdfelt <[email protected]>
1717
Justin Shepherd <[email protected]>
1818
Kiall Mac Innes <[email protected]>
19+
Russell Bryant <[email protected]>
1920
Scott Moser <[email protected]>
2021
Todd Willey <[email protected]>
2122
Tres Henry <[email protected]>

exercises/euca.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ fi
7474
# Revoke pinging
7575
euca-revoke -P icmp -s 0.0.0.0/0 -t -1:-1 $SECGROUP
7676

77-
# Delete group
78-
euca-delete-group $SECGROUP
79-
8077
# Release floating address
8178
euca-disassociate-address $FLOATING_IP
8279

@@ -97,3 +94,6 @@ fi
9794

9895
# Terminate instance
9996
euca-terminate-instances $INSTANCE
97+
98+
# Delete group
99+
euca-delete-group $SECGROUP

0 commit comments

Comments
 (0)