Bug 2082630

Summary: LVMCluster is not deleted when PVCs are deleted
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: N Balachandran <nibalach>
Component: lvm-operatorAssignee: N Balachandran <nibalach>
Status: CLOSED WORKSFORME QA Contact: Shay Rozen <srozen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: jolmomar, lgangava, muagarwa, ocs-bugs, odf-bz-bot, sapillai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-09 07:02:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description N Balachandran 2022-05-06 15:59:56 UTC
Description of problem (please be detailed as possible and provide log
snippests):

The LVMCluster controller does not delete the lvm resources if there are any existing topolvm PVCs at the time of LVMCluster CR deletion.
However, the clean up does not happen as expected even after the PVCs are deleted.

Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge?


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Is this issue reproducible?
Yes

Can this issue be reproduced from the UI?
N/A

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Install the LVM Operator and create an LVMCluster CR to configure it.
2. Create pods and PVCs using the topolvm provisioner storageclass
3. Delete the LVMCluster CR. The operator does not process the deletion because there are existing PVCs.
4. Delete the PVCs and pods.


Actual results:
The LVMCluster CR is not removed and the lvm resources are not deleted.

Expected results:
The LVMCluster CR is removed and the lvm resources are deleted.

Additional info:

Comment 3 N Balachandran 2022-05-09 07:02:09 UTC
Tried this again and was unable to reproduce it. Closing the Bug.