Bug 2309195

Summary: KeyRotationCronJob doesn't get created for a PVC when ReclaimSpace annotation is present
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Praveen M <mpraveen>
Component: csi-addonsAssignee: Praveen M <mpraveen>
Status: CLOSED ERRATA QA Contact: Parag Kamble <pakamble>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.17CC: ebenahar, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.17.0-92 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-30 14:32:45 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 Praveen M 2024-09-02 14:15:24 UTC
Description of problem (please be detailed as possible and provide log
snippests):


Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge?


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?


If this is a regression, please provide more details to justify this:
Yes, ReclaimSpace and KeyRotation annotations on StorageClass were added in 4.17.

Steps to Reproduce:
1. Create a PVC and add ReclaimSpace annotation
2. Add KeyRotation annotation
3. See that KeyRotationCronJob is not created


Actual results:
KeyRotationCronJob is not created, when ReclaimSpace annotation is present on a PVC.


Expected results:
KeyRotationCronJob should be created irrespective of ReclaimSpace annotation present or not on a PVC.

Additional info:

Fix: https://github.com/csi-addons/kubernetes-csi-addons/pull/641


Verification Steps:
1. Create a RBD StorageClass.
2. Add reclaimspace.csiaddons.openshift.io/schedule=@weekly annotation to created StorageClass.
3. Create a PVC from it, verify that the above annotation is added to the PVC as well and ReclaimSpaceCronJob is created for the PVC.
4. Now, add the keyrotation.csiaddons.openshift.io/schedule=@weekly to the same StorageClass.
5. Verify that the above KeyRotation annotation is added to its PVC and KeyRotationCronJob is created for the PVC.

Comment 7 Sunil Kumar Acharya 2024-09-18 12:06:54 UTC
Please update the RDT flag/text appropriately.

Comment 11 errata-xmlrpc 2024-10-30 14:32:45 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.17.0 Security, Enhancement, & 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-2024:8676