-
Notifications
You must be signed in to change notification settings - Fork 132
Remove node.machine.sapcloud.io/trigger-deletion-by-mcm annotation
#1055
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
Conversation
Scenarios testedAdd node finalizer
$ k get nodes ip-10-180-17-205.eu-west-1.compute.internal -oyaml | grep -A 1 finalizers
finalizers:
- node.machine.sapcloud.io/machine-controllerRemove node finalizer
Deletion flow order
MCM pod restart
Force deletion
Orphan safety controller scenarios
|
|
/assign |
thiyyakat
left a comment
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.
Hi @gagan16k. Thank you for the PR. Just have a few small suggestions. Nitpicks mostly.
takoverflow
left a comment
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.
Have only gone through half of the PR, had some suggestions, PTAL.
Thanks for extensively documenting the testing process!
aaronfern
left a comment
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.
Thanks for the PR!
Looks fine in general, just some comments
|
Made changes to Updated IT logs(AWS)ChangesNode event handlers
|
node.machine.sapcloud.io/trigger-deletion-by-mcm annotation for security reasonsnode.machine.sapcloud.io/trigger-deletion-by-mcm annotation for security reasons
node.machine.sapcloud.io/trigger-deletion-by-mcm annotation for security reasonsnode.machine.sapcloud.io/trigger-deletion-by-mcm annotation
gagan16k
left a comment
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.
Requested changes
aaronfern
left a comment
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.
Thanks for the PR!
/lgtm
What this PR does / why we need it:
This PR introduces changes to the machine deletion workflow, specifically: Node finalizers. Added steps for adding/removing node finalizers, support when dealing with orphaned nodes, and updated related tests.
NodeFinalizerfor tagging node objects and implemented a new step in the machine deletion flow to explicitly remove node finalizers before node deletion.addNodeToMachine,updateNodeToMachine,deleteNodeToMachine) to (addNode,updateNode,deleteNode) and moved them frommachine.gotonode.goNotManagedByMCM, and trigger machine deletion if the node has a deletion timestamp.triggerDeletionFlow) to transition from VM deletion to node finalizer removal, and only then to node deletion. All related status messages and retry logic now reflect this new intermediate step.Changes made in the PR will deprecate this feature.
Which issue(s) this PR fixes:
Fixes #1051
Special notes for your reviewer:
IT logs
Release note: