spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject spark git commit: [SPARK-5335] Fix deletion of security groups within a VPC
Date Thu, 12 Feb 2015 23:26:55 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.2 c7bac577a -> d24971a62

[SPARK-5335] Fix deletion of security groups within a VPC

Please see

The fix itself is in e58a8b01a8bedcbfbbc6d04b1c1489255865cf87 commit. Two earlier commits
are fixes of another VPC related bug waiting to be merged. I should have created former bug
fix in own branch then this fix would not have former fixes. :(

This code is released under the project's license.

Author: Vladimir Grigor <>
Author: Vladimir Grigor <>

Closes #4122 from voukka/SPARK-5335_delete_sg_vpc and squashes the following commits:

090dca9 [Vladimir Grigor] fixes as per review: removed printing of group_id and added comment
730ec05 [Vladimir Grigor] fix for SPARK-5335: Destroying cluster in VPC with "--delete-groups"
fails to remove security groups

(cherry picked from commit ada993e954e2825c0fe13326fc23b0e1a567cd55)
Signed-off-by: Sean Owen <>


Branch: refs/heads/branch-1.2
Commit: d24971a625051f3c808eff9b51160bb6cb8a11ed
Parents: c7bac57
Author: Vladimir Grigor <>
Authored: Thu Feb 12 23:26:24 2015 +0000
Committer: Sean Owen <>
Committed: Thu Feb 12 23:26:50 2015 +0000

 ec2/ | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ec2/ b/ec2/
index aaddf61..b4283db 100755
--- a/ec2/
+++ b/ec2/
@@ -983,11 +983,12 @@ def real_main():
                     time.sleep(30)  # Yes, it does have to be this long :-(
                     for group in groups:
-                            conn.delete_security_group(
-                            print "Deleted security group " +
+                            # It is needed to use group_id to make it work with VPC
+                            conn.delete_security_group(
+                            print "Deleted security group %s" %
                         except boto.exception.EC2ResponseError:
                             success = False
-                            print "Failed to delete security group " +
+                            print "Failed to delete security group %s" %
                     # Unfortunately, group.revoke() returns True even if a rule was not
                     # deleted, so this needs to be rerun if something fails

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message