Skip to content

Deletion of Machine+associated VM/Node should not hang if corresponding MachineClass is not found #1061

@elankath

Description

@elankath

How to categorize this issue?

/area robustness
/kind bug
/priority 3

What happened:

)This happened during repetition of local gardener dev setup) A dangling Machine object was found, associated with a MachineClass that did not exist. Neither the Machine nor its Node (or associated VM) was deleted by MCM and the Machine was stuck in the Terminating phase and kept being re-added to the termination queue.

E1217 10:52:25.202638       1 machine_util.go:87] MachineClass shoot--local--i034796l-bc/shoot--local--i034796l-bc-bc-z1-2dab0 not found. Skipping. machineclass.machine.sapcloud.io "shoot--local--i034796l-bc-bc-z1-2dab0" not found

E1217 10:52:25.202646       1 machine.go:277] cannot reconcile machine "shoot--local--i034796l-bc-bc-z1-5dd4d-tvp4n": machineclass.machine.sapcloud.io "shoot--local--i034796l-bc-bc-z1-2dab0" not found

I1217 10:52:25.202655       1 machine.go:133] Adding machine object to termination queue "shoot--local--i034796l-bc/shoot--local--i034796l-bc-bc-z1-5dd4d-tvp4n" after 10

What you expected to happen:
Machine object and associated resources should be deleted even if its corresponding MachineClass is not found.

How to reproduce it (as minimally and precisely as possible):

  • (original reproduction difficult as it involved repeated attempts at gardener local dev setup of an erreneous local seed_shoot.)
  • simpler reproduction can be done by simply removing finalizers of a MachineClass, deleting the MachineClass and then deleting corresponding Machine(s).
  • The Machine(s) associated with the MachineClass will remain stuck in Terminating phase and neither Node object nor associated VM are deleted.

Anything else we need to know?:
NO

Environment:
ALL

  • Kubernetes version (use kubectl version): any
  • Cloud provider or hardware configuration: any
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/robustnessRobustness, reliability, resilience relatedkind/bugBugpriority/3Priority (lower number equals higher priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions