kubernetes-sigs/gcp-compute-persistent-disk-csi-driver

Can't provision filesystems other than ext4, csi.storage.k8s.io/fstype: not allowed

brokenjacobs opened this issue · 1 comments

Using: gke.gcr.io/csi-node-driver-registrar:v2.8.0-gke.1@sha256:058c8a34b91fdc3425dfb263f75d73fd9ae6a532bb688f95fea972687fb1cf44

(v1.26.5-gke.1200)

When I attempt to create a storage class with the csi.storage.k8s.io/fstype, storage fails to provision with this error:

Warning ProvisioningFailed  3m20s (x9 over 7m35s)  pd.csi.storage.gke.io_gke-c42694fcde0a4c7d838c-d9c4-1b03-vm_0b83d872-0953-46f5-8836-708a6562741f failed to provision volume with StorageClass "standard-xfs": failed to strip CSI Parameters of prefixed keys: found unknown parameter key "csi.storage.k8s.io/fstype:" with reserved namespace csi.storage.k8s.io/

If I try to revert to using the legacy fsType parameter that fails also:

Warning ProvisioningFailed   5s (x2 over 13s)    pd.csi.storage.gke.io_gke-c42694fcde0a4c7d838c-d9c4-1b03-vm_0b83d872-0953-46f5-8836-708a6562741f failed to provision volume with StorageClass "standard-xfs": rpc error: code = InvalidArgument desc = failed to extract parameters: parameters contains invalid option "fsType"

Can't provision an xfs filesystem PV using a storageclass with the GCE CSI.

For anyone else that runs into this. I had two : characters in my yaml. There doesn't appear to be an admission controller for storageclass so it accepted this. And then failed to provision. Hard to see with the editor color coding, but totally my mistake! Closing.