when I try to claim a pv, it goes in pending state with the following error:
failed to provision volume with StorageClass "unity-nfs": error generating accessibility requirements: no available topology found
#k get sc NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE unity-nfs csi-unity.dellemc.com Delete Immediate true 14m #k get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE myclaim Pending unity-nfs 13m
- before use nfs an iscsi session must be setup, and initiators must be logged in
After that csi is able to create filesystem and nfs share, but now worker node doesn't mount it
Operation for "{volumeName:kubernetes.io/csi/csi-unity.dellemc.com^csivol-cffcb5b02b-NFS-virt21087h85ot-fs_1 podName: nodeName:}" failed. No retries permitted until 2021-02-21 04:58:52.024755582 -0500 EST m=+607308.118069457 (durationBeforeRetry 2m2s). Error: "MountVolume.NewMounter initialization failed for volume \"csivol-cffcb5b02b\" (UniqueName: \"kubernetes.io/csi/csi-unity.dellemc.com^csivol-cffcb5b02b-NFS-virt21087h85ot-fs_1\") pod \"three-crown-postgresql-0\" (UID: \"b5ffc562-debe-49ed-a104-827b66b0fd00\") : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string"
OR
MountVolume.NewMounter initialization failed for volume "csivol-cffcb5b02b" : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string
On the error fsGroupPolicy , received nil value ; can share more details about your configuration (kubernetes version and flavor, any feature gates enabled, etc.) ?
The fsGroupPolicy has been introduced recently to specify if a CSI driver should honor or not the permission change defined in the fsGroup directive of your Pod specification.
now I'm trying to attach a iscsi lun, but i receive same error
MountVolume.NewMounter initialization failed for volume "csivol-f702818e8b" : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string
$ kubectl get node NAME STATUS ROLES AGE VERSION srvmkb01 Ready master 9d v1.20.2 srvmkb02 Ready master 9d v1.20.2 srvmkb03 Ready master 9d v1.20.2 srvwkb01 Ready 9d v1.20.2 srvwkb02 Ready 9d v1.20.2 srvwkb03 Ready 9d v1.20.2
errevi_mancio
1 Rookie
•
106 Posts
1387
0
Posted February 21st, 2021 02:00
I found some errors:
- pool must be indicate as cli id
- before use nfs an iscsi session must be setup, and initiators must be logged in
After that csi is able to create filesystem and nfs share, but now worker node doesn't mount it
Operation for "{volumeName:kubernetes.io/csi/csi-unity.dellemc.com^csivol-cffcb5b02b-NFS-virt21087h85ot-fs_1 podName: nodeName:}" failed. No retries permitted until 2021-02-21 04:58:52.024755582 -0500 EST m=+607308.118069457 (durationBeforeRetry 2m2s). Error: "MountVolume.NewMounter initialization failed for volume \"csivol-cffcb5b02b\" (UniqueName: \"kubernetes.io/csi/csi-unity.dellemc.com^csivol-cffcb5b02b-NFS-virt21087h85ot-fs_1\") pod \"three-crown-postgresql-0\" (UID: \"b5ffc562-debe-49ed-a104-827b66b0fd00\") : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string"
OR
MountVolume.NewMounter initialization failed for volume "csivol-cffcb5b02b" : kubernetes.io/csi: expected valid fsGroupPolicy, received nil value or empty string
Thanks
Matteo