Bug 1862429 - LocalVolumeSet object can be deleted with in-use PVs. May result in data leak
Summary: LocalVolumeSet object can be deleted with in-use PVs. May result in data leak
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.9.0
Assignee: Rohan CJ
QA Contact: Chao Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-31 12:25 UTC by Rohan CJ
Modified: 2021-10-18 17:29 UTC (History)
3 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-10-18 17:28:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift local-storage-operator pull 150 0 None open Bug 1862429: Ensure that LocalVolumeSet cannot be deleted with released/bound PVCs. 2021-07-23 13:55:57 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:29:06 UTC

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


Note You need to log in before you can comment on or make changes to this bug.