Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Sep 11, 2019

When there are multiple untagged security groups, a security group may fail deletion with DependencyViolation. Before this PR, that aborted that round of deleteEC2VPC, and when the blocking dependency was another untagged security group, deletion would hang.

With this commit, we keep iterating through all untagged security groups (just like we do for tagged security groups). For security group cycles, deletion will fail for the first few groups while we drain out their ingress and egress rules. But deletion will succeed for at least some of the cycle. And the rule draining will have completely deconstructed the cycle, so the second pass through will clear out all the security groups.

So prior to 55630a3 (#2214), destroy would hang on any untagged security group. And prior to this PR, it would hang when two untagged security groups referenced each other (or, if we got unlucky, A referenced B and our DescribeSecurityGroupsPages call always happened to return B first). With this commit, we should be good to go.

When there are multiple untagged security groups, a security group may
fail deletion with DependencyViolation.  Before this commit, that
aborted that round of deleteEC2VPC, and when the blocking dependency
was another untagged security group, deletion would hang [1].

With this commit, we keep iterating through all untagged security
groups (just like we do for tagged security groups).  For security
group cycles, deletion will fail for the first few groups while we
drain out their ingress and egress rules.  But deletion will succeed
for at least some of the cycle.  And the rule draining will have
completely deconstructed the cycle, so the second pass through will
clear out all the security groups.

So prior to 55630a3 (pkg/destroy/aws: Delete security groups by
VPC, 2019-08-13, openshift#2214), destroy would hang on *any* untagged security
group.  And prior to this commit, it would hang when two untagged
security groups referenced each other (or, if we got unlucky, A
referenced B and our DescribeSecurityGroupsPages call always happened
to return B first).  With this commit, we should be good to go.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1747519#c5
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 11, 2019
@openshift-ci-robot
Copy link
Contributor

@wking: This pull request references Bugzilla bug 1747519, which is invalid:

  • expected the bug to target the "4.2.0" release, but it targets "4.3.0" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

Bug 1747519: pkg/destroy/aws: Do not failFast for deleteEC2SecurityGroupsByVPC

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 11, 2019
@wking
Copy link
Member Author

wking commented Sep 11, 2019

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@wking: This pull request references Bugzilla bug 1747519, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Sep 11, 2019
@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 073ee39 into openshift:master Sep 11, 2019
@openshift-ci-robot
Copy link
Contributor

@wking: All pull requests linked via external trackers have merged. Bugzilla bug 1747519 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1747519: pkg/destroy/aws: Do not failFast for deleteEC2SecurityGroupsByVPC

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@wking wking deleted the do-not-failFast-for-security-groups branch September 13, 2019 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants