Bug 1990428 - Deleting the PVC and RBD provisioner leader pod while provisioning is progressing, will leave a stale image
Summary: Deleting the PVC and RBD provisioner leader pod while provisioning is progres...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabio Bertinatto
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks: 1962956
TreeView+ depends on / blocked
 
Reported: 2021-08-05 11:41 UTC by Mudit Agarwal
Modified: 2021-12-16 13:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-16 13:37:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubernetes-csi external-provisioner issues 486 0 None None None 2021-08-05 11:42:26 UTC
Red Hat Bugzilla 1962956 1 unspecified CLOSED [Tracker for OCP BZ #1990428] [RBD][Thick] Deleting the PVC and RBD provisioner leader pod while thick provisioning is p... 2023-08-09 16:43:06 UTC

Description Mudit Agarwal 2021-08-05 11:41:22 UTC
Description of problem:

Deleting the PVC and RBD provisioner leader pod while provisioning is progressing, will leave a stale image. The issue can be seen frequently with thick provisioned volumes.

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

How reproducible:
Always (with thick provisioning)

Steps to Reproduce:
1. Start creating a RBD PVC of size 15 GiB. Use thick provision enabled storage class.
2. When step 1 is progressing (PVC in Pending state), delete the csi-rbdplugin-provisioner leader pod.
3. Immediately after step 2 (PVC is still in Pending state), delete the PVC.
4. Wait for the PVC to get deleted.
5. Wait for the corresponding RBD image to get deleted.

Actual results:
PVC deleted. RBD image is not deleted.

Expected results:
The RBD image should be deleted.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

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

Additional info:

Comment 4 Jan Safranek 2021-08-10 14:25:14 UTC
This will need some discussion upstream, as it is hard problem to solve. We either need to sacrifice provisioning speed or leaked volumes.

Comment 5 Jan Safranek 2021-08-10 16:12:34 UTC
Upstream issue:
https://github.com/kubernetes-csi/external-provisioner/issues/486

Comment 7 Gregory Charot 2021-12-16 13:37:31 UTC
Closing deferred, this is no simple fix and requires design an proper integration. Tracking this work via this RFE https://issues.redhat.com/browse/RFE-2505


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