-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-5335] Fix deletion of security groups within a VPC #4122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can one of the admins verify this patch? |
I guess review on this can wait until #4038 is merged. You will probably need to rebase this PR at that time. |
conn.delete_security_group(group.name) | ||
print "Deleted security group " + group.name | ||
conn.delete_security_group(group_id=group.id) | ||
print "Deleted security group %s, id %s" % (group.name, group.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any place where the user inputs a group by its ID instead of its name? If not, I don't think we should print this here.
I just ran into this issue. Nice work @voukka on catching this and fixing it. @voukka To make this easier to merge, could you do the following?
|
@@ -1082,11 +1109,11 @@ def real_main(): | |||
time.sleep(30) # Yes, it does have to be this long :-( | |||
for group in groups: | |||
try: | |||
conn.delete_security_group(group.name) | |||
print "Deleted security group " + group.name | |||
conn.delete_security_group(group_id=group.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would perhaps add a very short comment saying "we must use the group ID here" so that other developers don't change this back to group.name
and think it works fine because they are testing outside VPCs.
ok to test |
Test build #27041 has started for PR 4122 at commit
|
Test build #27041 has finished for PR 4122 at commit
|
Test FAILed. |
…fails to remove security groups
e58a8b0
to
730ec05
Compare
Test build #27355 has started for PR 4122 at commit
|
Test build #27355 has finished for PR 4122 at commit
|
Test FAILed. |
I just rebased my fix and made changes according to review suggestions. |
Test build #27356 has started for PR 4122 at commit
|
Test build #27356 has finished for PR 4122 at commit
|
Test PASSed. |
Thanks for the update @voukka. LGTM |
Please see https://issues.apache.org/jira/browse/SPARK-5335. 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 <vladimir@kiosked.com> Author: Vladimir Grigor <vladimir@voukka.com> 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 ada993e) Signed-off-by: Sean Owen <sowen@cloudera.com>
Please see https://issues.apache.org/jira/browse/SPARK-5335. 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 <vladimir@kiosked.com> Author: Vladimir Grigor <vladimir@voukka.com> 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 ada993e) Signed-off-by: Sean Owen <sowen@cloudera.com>
Please see https://issues.apache.org/jira/browse/SPARK-5335. 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 <vladimir@kiosked.com> Author: Vladimir Grigor <vladimir@voukka.com> Closes apache#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 ada993e) Signed-off-by: Sean Owen <sowen@cloudera.com>
Please see https://issues.apache.org/jira/browse/SPARK-5335.
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.