Edge case where Node Deletion is missed if machine 'node' label is not present #875
Labels
area/robustness
Robustness, reliability, resilience related
kind/bug
Bug
priority/2
Priority (lower number equals higher priority)
status/closed
Issue is closed (either delivered or triaged)
How to categorize this issue?
/area robustness
/kind bug
/priority 2
What happened:
When a
Node
is never associated with itsMachine
. Ie themachine
object never has themachine.Labels[v1alpha1.NodeLabelKey]
set after the machine creation, then during the deletion flow, ourNode
object is not deleted. (Label up-dation can be missed if the machine object update transiently fails)Then after some time, the dangling
Node
object gets theNotManagedByMCM
annotation.What you expected to happen:
Node
object should always be deleted prior to the instance VM Termination andMachine
object deletion, even if the association was missed during instance creation.How to reproduce it (as minimally and precisely as possible):
Machine
and then remove itsnode
label.Node
is still present.Anything else we need to know?:
Environment:
kubectl version
): anyThe text was updated successfully, but these errors were encountered: