Bug 2048370 - CSI-Addons controller makes node reclaimspace request even when the PVC is not mounted to any pod.
Summary: CSI-Addons controller makes node reclaimspace request even when the PVC is no...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: csi-addons
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ODF 4.10.0
Assignee: Rakshith
QA Contact: Jilju Joy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-31 05:47 UTC by Rakshith
Modified: 2023-08-09 16:37 UTC (History)
4 users (show)

Fixed In Version: 4.10.0-132
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-13 18:52:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github csi-addons kubernetes-csi-addons pull 104 0 None Merged controller/reclaimspacejob: skip making node req if nodeID is empty 2022-01-31 05:47:21 UTC
Github red-hat-storage kubernetes-csi-addons pull 24 0 None Closed CVE-2021-3449 and CVE2021-3450 fix release 2022-06-03 07:12:22 UTC
Red Hat Product Errata RHSA-2022:1372 0 None None None 2022-04-13 18:52:59 UTC

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


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