-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pod with PVC provisioned by csi-driver-nfs fails to start due to FailedMount with error mkdir /var/snap: read-only file system
#514
Comments
it seems the nfs csi driver does not have permission to |
I have pretty same setup and facing the same problem
Error message for the pod being created
Can confirm that other NFS-based persistence implementations, like https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/ do not suffer from this problem, i am able to create PVC+PV with this solution and it mounted on the node under |
Yeah, though that's the error quoted from the digging that I've done that error doesn't make any sense. The pod isn't mounting any internal volumes under /var/snap, so it should/will have permission to that path (if it even exists within the pod). That would mean it's the driver itself trying to if the nfs csi driver is attempting to make any directories under /var/snap and not under directories that belong to microk8s itself or something similar, there'll be obvious permission problems because Snap locks down the filesystem to prevent abuse. I did try opening up the permissions in /var/snap just to see if that changed anything, but it caused my entire cluster to fail. |
I was able to install version 4.2.0 and I am now able to mount PVCs to my NAS. I have found file permission issues that seem to appear to stem from the csi-driver-nfs itself, as I can use the same mount command via CLI and have no issues. So the original issue reported appears to be with newer versions of the csi driver
|
I also have the same error...
My error is... MountVolume.SetUp failed for volume "pvc-68e70909-9c25-44bc-933a-c1ddffcf02d9" : rpc error: code = Internal desc = mkdir /var/snap: read-only file system |
I was able to fix the immediate error |
|
What happened:
Using dynamic provisioning, after mounting a PV to an NFS share on my TrueNAS server, pods fail to start with the reason
FailedMount
and the following errorWhat you expected to happen:
The pod should be able to start normally
How to reproduce it:
Using a fresh microk8s installation, on Ubuntu server, against an NFS share provisioned with TrueNAS
The TrueNAS NFS share is configured simply with NFSv4 enabled, and NFSv3 ownership model for NFSv4
Commands to install the driver and storage class
nfs.storageclass.yaml
Environment:
helm.sh/chart: csi-driver-nfs-v4.4.0
Ubuntu 22.04.3 LTS
Linux homelab 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Microk8s 1.27.5
TrueNAS 13.0-U5.3
The text was updated successfully, but these errors were encountered: