Skip to content
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

Investigate and diagnose Dangling DIsks on Azure after VM/shoot deletion. #90

Closed
1 task
elankath opened this issue Apr 11, 2023 · 2 comments
Closed
1 task
Assignees
Labels
kind/bug Bug priority/2 Priority (lower number equals higher priority) status/closed Issue is closed (either delivered or triaged)

Comments

@elankath
Copy link
Contributor

elankath commented Apr 11, 2023

What happened:
After VM Deletion / Shoot Deletion there are still disks left on azure. Orphan collection doesn't work as the MCM is scaled down after the final machine obj is removed during shoot deletion
Background: Live Issue 2263 on internal kubernetes-live

We noticed that when cluster is deleted in Gardener it does not delete disks, leaving them in unattached state. The assumption was that once the cluster is deleted all related resources are also deleted (including the resource group), otherwise we are paying for unused resources and also this can causes new clusters being blocked in creation.

What you expected to happen:
Deletion of unused disks when cluster is deleted.

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

  • Create a machine obj, stop it from deletion by adding a custom finalizer, trigger the machine obj deletion
  • Perform the shoot deletion
  • add some disks with role tag and cluster tag used by MCM
  • remove the finalizer

Now notice if MCM removes those disks , sometimes it won't remove them using orphan colleciton.

Anything else we need to know:

Environment:

@elankath elankath added the kind/bug Bug label Apr 11, 2023
@elankath elankath self-assigned this Apr 11, 2023
@elankath elankath added the priority/2 Priority (lower number equals higher priority) label Apr 11, 2023
@himanshu-kun
Copy link
Contributor

Post grooming

This is to track progress cascade create/ delete in Azure.

@himanshu-kun
Copy link
Contributor

/close as cascade delete is being done

@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug priority/2 Priority (lower number equals higher priority) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

No branches or pull requests

4 participants