-
Notifications
You must be signed in to change notification settings - Fork 629
✨ Cancel instance refresh on any relevant change to ASG instead of blocking until previous one is finished (which may have led to failing nodes due to outdated join token) #5543
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
56f83a4
to
a99b8ca
Compare
/test pull-cluster-api-provider-aws-e2e |
a99b8ca
to
af59d86
Compare
615c57c
to
d4d3662
Compare
@richardcase I think you have some machine pool experience and could maybe review this? |
…king until previous one is finished (which may have led to failing nodes due to outdated join token)
d4d3662
to
baf3527
Compare
Rebased onto AWS SDK Go v2 changes /test pull-cluster-api-provider-aws-e2e |
/test pull-cluster-api-provider-aws-e2e |
Rate limit errors in the test, trying again /test pull-cluster-api-provider-aws-e2e |
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.
/lgtm
LGTM label has been added. Git tree hash: 524f880dcd8a5eff0e7f608006e4e86f3fc3786c
|
@AndiDog - do you think there is any benefit in adding an e2e that covers this scenario? |
@richardcase I'd say the feature is not that critical to require an E2E test. The behavior is well-covered in |
(reopened from #5173 because I didn't have enough permissions to force-push)
What type of PR is this?
What this PR does / why we need it:
Changing any relevant
spec.*
for anAWSMachinePool
triggers rolling of nodes via ASG instance refresh. If another change happens shortly afterwards, it has to wait until the first rollout is done, and will then trigger another instance refresh. But it is neither necessary nor desired to roll all worker nodes twice in such a case, and it's much slower. Instead, cancel the first pending instance refresh, wait until another one can be started, and apply the latest change as soon as possible with the second instance refresh.This change has been running fine in Giant Swarm's CAPA fork for almost a year at the time of opening this PR.
Checklist:
Release note: