Bug 2309195 - KeyRotationCronJob doesn't get created for a PVC when ReclaimSpace annotation is present
Summary: KeyRotationCronJob doesn't get created for a PVC when ReclaimSpace annotation...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: csi-addons
Version: 4.17
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.17.0
Assignee: Praveen M
QA Contact: Parag Kamble
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-02 14:15 UTC by Praveen M
Modified: 2024-10-30 14:32 UTC (History)
2 users (show)

Fixed In Version: 4.17.0-92
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-10-30 14:32:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage kubernetes-csi-addons pull 191 0 None open BUG 2309195: fix pvc reclaimspace & keyrotation annotation filter 2024-09-02 14:22:34 UTC
Red Hat Issue Tracker OCSBZM-8926 0 None None None 2024-09-02 14:16:55 UTC
Red Hat Product Errata RHSA-2024:8676 0 None None None 2024-10-30 14:32:49 UTC

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


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