Bug 2079873

Summary: csi-nfsplugin pods are not coming up after successful patch request to update "ROOK_CSI_ENABLE_NFS": "true"'
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Amrita Mahapatra <ammahapa>
Component: rookAssignee: Rakshith <rar>
Status: CLOSED ERRATA QA Contact: Neha Berry <nberry>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: madam, muagarwa, ocs-bugs, odf-bz-bot, rar, rperiyas
Target Milestone: ---   
Target Release: ODF 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.11.0-61 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-24 13:51:03 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 Amrita Mahapatra 2022-04-28 12:20:51 UTC
Description of problem (please be detailed as possible and provide log
snippests):

csi-nfsplugin pods are not coming up after successful patch request to enable nfs feature and to update "ROOK_CSI_ENABLE_NFS": "true"' . Below mentioned error displayed,

[ammahapa@ammahapa ~]$ oc describe replicasets csi-nfsplugin-provisioner-6c9b59cf6d

Conditions:
  Type             Status  Reason
  ----             ------  ------
  ReplicaFailure   True    FailedCreate
Events:
  Type     Reason        Age                   From                   Message
  ----     ------        ----                  ----                   -------
  Warning  FailedCreate  4m14s (x26 over 58m)  replicaset-controller  Error creating: pods "csi-nfsplugin-provisioner-6c9b59cf6d-" is forbidden: error looking up service account openshift-storage/rook-csi-nfs-provisioner-sa: serviceaccount "rook-csi-nfs-provisioner-sa" not found
Version of all relevant components (if applicable):

Version of all relevant components (if applicable):
OCP: 4.11.0-0.nightly-2022-04-26-181148
ODF full version: 4.11.0-51

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


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


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? yes


Can this issue reproduce from the UI? no


If this is a regression, please provide more details to justify this: No


Steps to Reproduce:
1. Update nfs feature for the storage-cluster with patch command.
[ammahapa@ammahapa ~]$ oc patch -n openshift-storage storageclusters.ocs.openshift.io ocs- 
storagecluster --patch '{"spec": {"nfs":{"enable": true}}}' --type merge

storagecluster.ocs.openshift.io/ocs-storagecluster patched

2. Enable "ROOK_CSI_ENABLE_NFS"
[ammahapa@ammahapa ~]$ oc patch cm rook-ceph-operator-config -n openshift-storage -p $'data:\n "ROOK_CSI_ENABLE_NFS":  "true"'
configmap/rook-ceph-operator-config patched

3. check csi-nfsplugin pods came up or not


Actual results:
csi-nfsplugin pods are not coming up. Failing with below error,

Error creating: pods "csi-nfsplugin-provisioner-6c9b59cf6d-" is forbidden: error looking up service account openshift-storage/rook-csi-nfs-provisioner-sa: serviceaccount "rook-csi-nfs-provisioner-sa" not found


Expected results:
csi-nfsplugin pods should come up.

Comment 9 errata-xmlrpc 2022-08-24 13:51:03 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.11.0 security, enhancement, & bugfix 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:6156