Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1862429

Summary: LocalVolumeSet object can be deleted with in-use PVs. May result in data leak
Product: OpenShift Container Platform Reporter: Rohan CJ <rojoseph>
Component: StorageAssignee: Rohan CJ <rojoseph>
Storage sub component: Local Storage Operator QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, hekumar, jsafrane
Version: 4.6   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: It was possible to delete LocalVolumeSets with bound or released PVs. Consequence: The provisioner daemon can disappear leaving Released PVs to be manually cleaned up. Fix: The LocalVolumeSet deletion waits for PVs to be released and cleaned up via finalizer. Result: All released PVs are cleaned.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:28:52 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 Rohan CJ 2020-07-31 12:25:06 UTC
Description of problem:

LocalVolumeSet object can be deleted with in-use PVs. May result in data leak if PVs are recreated without being cleaned up in between.


Version-Release number of selected component (if applicable):

How reproducible:
NA
Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
LocalVolumeSet deletion should not succeed until there are no in-use child PVs


Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 4 Rohan CJ 2020-11-11 13:42:56 UTC
depends on the provisioner integration PR, which is almost done: https://github.com/openshift/local-storage-operator/pull/181

Comment 8 Chao Yang 2021-07-27 07:53:59 UTC
2021-07-27T07:39:20.960Z	INFO	controllers.LocalVolumeSet	deletionTimeStamp found, waiting for 0 bound PVs

Passed with local-storage-operator.4.9.0-202107231534

Comment 11 errata-xmlrpc 2021-10-18 17:28:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759