Bug 2155460

Summary: PVC clone fails with error "system:serviceaccount:openshift-storage:rook-csi-cephfs-provisioner-sa" cannot update resource "persistentvolumeclaims" in API group
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Rachael <rgeorge>
Component: rookAssignee: Madhu Rajanna <mrajanna>
Status: CLOSED CURRENTRELEASE QA Contact: Rachael <rgeorge>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.12CC: mrajanna, muagarwa, ocs-bugs, odf-bz-bot
Target Milestone: ---Keywords: Regression
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.12.0-156 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 14:06:28 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 Rachael 2022-12-21 10:15:25 UTC
Description of problem (please be detailed as possible and provide log
snippets):

While creating PVC clone, the following error was observed:

Name:          clone-pvc-test-3594f249247249-50ff3c3536
Namespace:     namespace-test-221d45c9fe6349d291589408a
StorageClass:  ocs-storagecluster-cephfs
Status:        Pending
Volume:
Labels:        
Annotations:   volume.beta.kubernetes.io/storage-provisioner: openshift-storage.cephfs.csi.ceph.com
               volume.kubernetes.io/storage-provisioner: openshift-storage.cephfs.csi.ceph.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode:    Filesystem
DataSource:
  Kind:   PersistentVolumeClaim
  Name:   pvc-test-3594f2492472493990804ee7413a39c
Used By:  
Events:
  Type     Reason                Age                From                                                                                                                      Message



  Warning  ProvisioningFailed    63s                openshift-storage.cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-766db4bcc5-xhjbt_5fc4f10a-9c20-4cc3-8f46-37bf5254ab0d  failed to provision volume with StorageClass "ocs-storagecluster-cephfs": persistentvolumeclaims "pvc-test-3594f2492472493990804ee7413a39c" is forbidden: User "system:serviceaccount:openshift-storage:rook-csi-cephfs-provisioner-sa" cannot update resource "persistentvolumeclaims" in API group "" in the namespace "namespace-test-221d45c9fe6349d291589408a"

This issue is intermittently seen. The cloned PVC eventually got bound.

Version of all relevant components (if applicable):
---------------------------------------------------
OCP: 4.12.0-0.nightly-2022-12-01-184212
ODF: 4.12.0-122


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)?
2

Can this issue reproducible?
Not always

Can this issue reproduce from the UI?
Yes

If this is a regression, please provide more details to justify this:
This issue is observed intermittently

Steps to Reproduce:
-------------------
OCS-CI test: https://github.com/red-hat-storage/ocs-ci/blob/master/tests/manage/pv_services/pvc_clone/test_clone_when_pvc_full.py


Actual results:
---------------
The following error is seen during the cloning process:

Warning  ProvisioningFailed    63s                openshift-storage.cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-766db4bcc5-xhjbt_5fc4f10a-9c20-4cc3-8f46-37bf5254ab0d  failed to provision volume with StorageClass "ocs-storagecluster-cephfs": persistentvolumeclaims "pvc-test-3594f2492472493990804ee7413a39c" is forbidden: User "system:serviceaccount:openshift-storage:rook-csi-cephfs-provisioner-sa" cannot update resource "persistentvolumeclaims" in API group "" in the namespace "namespace-test-221d45c9fe6349d291589408a"

Expected results:
-----------------
PVC clone should succeed without any errors