CICD tests - VPC delete failed#724
Open
oldgiova wants to merge 2 commits into
Open
Conversation
eksctl delete cluster deletes nodegroups then the VPC in one atomic call. When node instances are killed, the VPC CNI can leak secondary ENIs in "available" state (known aws-vpc-cni-k8s behavior, worse on spot). These get discovered only when CloudFormation tries to delete the VPC afterward, failing the whole cleanup job. Split nodegroup and cluster deletion into separate eksctl calls and sweep available ENIs in between, plus once more if the cluster delete still fails. Extract the sweep into a shared anchor and resolve VPC_ID once per job instead of re-querying it five times. Ticket: MC-8739 Signed-off-by: Roberto Giovanardi <roberto.giovanardi@northern.tech>
dig +short leaks "communications error to X#53: timed out" onto stdout when it can't reach the DNS server, even with +short. The ingress test treated that string as a valid IP since it only checked for non-empty output, then fed it straight into curl --resolve, which failed to parse. Filter dig's output to a dotted-quad IPv4 pattern before accepting it, and cap dig to a single 2s attempt so one bad query doesn't stall the outer retry loop. Ticket: MC-8739 Signed-off-by: Roberto Giovanardi <roberto.giovanardi@northern.tech>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses:
Co-authored-with: Claude