Bug 2048370

Summary: CSI-Addons controller makes node reclaimspace request even when the PVC is not mounted to any pod.
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Rakshith <rar>
Component: csi-addonsAssignee: Rakshith <rar>
Status: CLOSED ERRATA QA Contact: Jilju Joy <jijoy>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10CC: muagarwa, nberry, ocs-bugs, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.10.0-132 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-13 18:52:41 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 Rakshith 2022-01-31 05:47:21 UTC
Description of problem (please be detailed as possible and provide log
snippests):

CSI-Addons controller makes node reclaimspace request even when the PVC is not
mounted to any pod.


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


Can this issue reproducible?
yes


Can this issue reproduce from the UI?
no


Steps to Reproduce:
1. Create an RBD PVC 
2. Create ReclaimSpaceJob for the PVC
3. Verify the result of the ReclaimSpaceJob.



Actual results:
CSI-Addons controller makes node reclaimspace request even when the PVC is not
mounted to any pod. The result of ReclaimSpaceJob is "Failed"

Expected results:
CSI-Addons controller should not makes node reclaimspace request when the PVC is not
mounted to any pod. The result of ReclaimSpaceJob should be "Succeeded".

Additional info:

Comment 4 Jilju Joy 2022-02-02 09:55:35 UTC
Verified in version:
ODF 4.10.0-137
OCP 4.10.0-0.nightly-2022-01-31-012936


$ oc get pvc,pod,reclaimspacejob -n test-project
NAME                           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                  AGE
persistentvolumeclaim/pvcrbd   Bound    pvc-2b436458-03a6-4d40-ac50-94803f2c566b   4Gi        RWO            ocs-storagecluster-ceph-rbd   119m

NAME                                                    NAMESPACE      AGE    RETRIES   RESULT
reclaimspacejob.csiaddons.openshift.io/reclaim-pvcrbd   test-project   116m             Succeeded


Reclaimspacejob Succeeded when the PVC is not mounted.

Comment 9 errata-xmlrpc 2022-04-13 18:52:41 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 (Important: Red Hat OpenShift Data Foundation 4.10.0 enhancement, security & bug fix 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-2022:1372