Closed Alan111S closed 1 month ago
I checked whether this is happening in another cluster and it has the same issue. My guess is that something has changed in OpenShift to cause the Storage Class to not work properly
Old Storage Class settings:-
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: efs-nfs-client
uid: 485f6bf9-c23c-4194-b3c2-331d45b3cc90
resourceVersion: '31155'
creationTimestamp: '2024-07-23T04:54:51Z'
managedFields:
- manager: kubectl-create
operation: Update
apiVersion: storage.k8s.io/v1
time: '2024-07-23T04:54:51Z'
fieldsType: FieldsV1
fieldsV1:
'f:parameters':
.: {}
'f:archiveOnDelete': {}
'f:provisioner': {}
'f:reclaimPolicy': {}
'f:volumeBindingMode': {}
provisioner: nfs-storage
parameters:
archiveOnDelete: 'false'
reclaimPolicy: Delete
volumeBindingMode: Immediate
New Storage Class settings after recreating using cpd-cli manage setup-nfs-provsioner
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: efs-nfs-client
uid: 4b71e37a-382c-4636-8d4b-815596c31146
resourceVersion: '58512091'
creationTimestamp: '2024-09-30T10:40:54Z'
managedFields:
- manager: OpenAPI-Generator
operation: Update
apiVersion: storage.k8s.io/v1
time: '2024-09-30T10:40:54Z'
fieldsType: FieldsV1
fieldsV1:
'f:parameters':
.: {}
'f:archiveOnDelete': {}
'f:provisioner': {}
'f:reclaimPolicy': {}
'f:volumeBindingMode': {}
provisioner: k8s-sigs.io/nfs-subdir-external-provisioner
parameters:
archiveOnDelete: 'false'
reclaimPolicy: Delete
volumeBindingMode: Immediate
The only difference is the provisioner is set to 'k8s-sigs.io/nfs-subdir-external-provisioner' instead of 'nfs-storage'
! RESOLVED !
I found out that I added another NFS storage namespace which overwrote the ClusterRoles and ClusterRoleBindings originally setup by the Deployer. This caused permissions to create PVs by the original service account to be lost
Describe the bug On AWS EFS, dynamic provisioning is broken - New PVCs are stuck in Pending state and the associated PVs are never created.
To Reproduce The cluster being used was setup using the Deployer originally. Running a WKC install, noticed that wkc-db2u-backup PV wasn't created and the associated PVC was stuck in Pending state.
Expected behavior PVC should be able to bind to a PV OK
Errors in the nfs-client-provisioner
Workaround Recreated the Storage Class efs-nfs-client
After this the new nfs-client-provisioner had a log like this:-