Skip to content
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

Deleting an eks.Cluster may fail with DependencyViolation on nodeSecurityGroup #1226

Closed
t0yv0 opened this issue Jul 3, 2024 · 2 comments
Closed
Assignees
Labels
impact/reliability Something that feels unreliable or flaky kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@t0yv0
Copy link
Member

t0yv0 commented Jul 3, 2024

What happened?

In certain configurations pulumi destroy fails to delete the eks.Cluster with an error message resembling the following:

    aws:ec2:SecurityGroup (example-cluster-py-3-nodeSecurityGroup):
      error: deleting urn:pulumi:p-it-fv-az1210--cluster-py-37ea6979::example-cluster-py::eks:index:Cluster$aws:ec2/securityGroup:SecurityGroup::example-cluster-py-3-nodeSecurityGroup: 1 error occurred:
      	* deleting Security Group (sg-0e8b6d9244b79c723): DependencyViolation: resource sg-0e8b6d9244b79c723 has a dependent object
      	status code: 400, request id: 1b401e09-4dda-4402-8a4e-95c43e03dbec

The workaround is to retry the operation at a later time.

Example

The issue surfaces in this repo CI periodically see #1222 for example

Output of pulumi about

pulumi-eks 2.7.3 is confirmed to be affected (https://github.com/pulumi/pulumi-eks/releases/tag/v2.7.3)

Additional context

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@t0yv0 t0yv0 added needs-triage Needs attention from the triage team kind/bug Some behavior is incorrect or out of spec labels Jul 3, 2024
@rquitales rquitales added impact/reliability Something that feels unreliable or flaky and removed needs-triage Needs attention from the triage team labels Jul 3, 2024
@flostadler
Copy link
Contributor

Retrying at a later time won’t help if the ENI is dangling. Those will need to be manually cleaned up.

@flostadler flostadler added the resolution/duplicate This issue is a duplicate of another issue label Sep 25, 2024
@flostadler flostadler self-assigned this Sep 25, 2024
@flostadler
Copy link
Contributor

Duplicate of: #779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/reliability Something that feels unreliable or flaky kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants