NetApp / trident

Storage orchestrator for containers
Apache License 2.0
762 stars 222 forks source link

Bug(ontap-nas-qtree): unused FlexVols not cleaned up #936

Open clementnuss opened 1 month ago

clementnuss commented 1 month ago

Describe the bug The code calling the pruneUnusedFlexVols function has been commented 5 years ago in this commit by @clintonk.

image

As a result, unused flexVols never get cleaned up 🤦🏼

Environment Provide accurate information about the environment to help us reproduce the issue.

To Reproduce Steps to reproduce the behavior:

Create a few flexVol with the ontap-nas-economy (ontap-nas-qtree in the code) and observe that FlexVols never get cleaned up.

Expected behavior The code should be uncommented, the housekeeping task should run, and unused FlexVols should be cleaned up.

@clintonk can you remember the rationale ?

As an enterprise user of netapp, we have to spend time chasing around deleted_ Qtrees and empty FlexVols. The feature should at least be made optional in my eyes