Bug 1887468

Summary: [RHEL][IBM] OCS un-install should cleanup the local volume paths
Product: OpenShift Container Platform Reporter: Raghavendra Talur <rtalur>
Component: StorageAssignee: aos-storage-staff <aos-storage-staff>
Storage sub component: Local Storage Operator QA Contact: Qin Ping <piqin>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: akgunjal, aos-bugs, ebenahar, jarrpa, jsafrane, madam, muagarwa, nberry, ocs-bugs, ratamir, rtalur, sabose, sapillai, sostapov
Version: 4.6Keywords: AutomationBackLog
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1870061 Environment:
Last Closed: 2020-10-13 14:36:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Raghavendra Talur 2020-10-12 14:46:05 UTC
In a OCS setup with disks provisioned through LSO, we find that after uninstalling OCS, the LSO devices still have the symlinks listed under /mnt/local-storage. 

They should be removed once the consumer has freed that devices.

Comment 2 Jan Safranek 2020-10-13 14:36:23 UTC
We could delete the symlinks, if something (user?) deletes LocalVolumeSet AND all related PVs are not used (bound). If they're bound to an existing PVCs, we don't delete anything as there may be some data on it.
To fully fix this BZ, we need a way how to track PVs from diskmaker, which is topic for 4.7 (at the earliest), tracked as: https://issues.redhat.com/browse/STOR-390

*** This bug has been marked as a duplicate of bug 1887574 ***