-
Notifications
You must be signed in to change notification settings - Fork 578
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
🐛 Update awsmachine providerID and instanceID immediately after ec2:RunInstances is called #4670
Conversation
…Instances is called This mitigates issues caused by falling back to tag-based searching for EC2 instances in case future AWS calls fail, such as attaching ENIs to security groups or tagging ENIs. Signed-off-by: Michael Shen <[email protected]>
/lgtm |
/assign killianmuldoon |
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.
Nice improvement!
/lgtm
/test ? |
@richardcase: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test pull-cluster-api-provider-aws-e2e |
/lgtm Can we please keep #4629 open after merging this PR? I think we haven't addressed the root cause there, but this is a welcome improvement nevertheless! |
/test pull-cluster-api-provider-aws-e2e |
We discussed this at today's office hours. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlipovetsky The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@richardcase do you think we could add this to the upcoming |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This mitigates issues caused by falling back to tag-based searching for EC2 instances in case future AWS calls fail within
CreateInstance()
, such as attaching ENIs to security groups or tagging ENIs.cluster-api-provider-aws/controllers/awsmachine_controller.go
Lines 421 to 448 in c9b9276
Which issue(s) this PR fixes:
Related to #4629
Special notes for your reviewer:
This PR focuses on mitigating the impact when the controller fails to tag ENIs after creating EC2 instances. Another PR to make the fallback tag-based searching more robust is in the works in #4630
Checklist:
Release note: