Skip to content
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

nutanix-csi MountVolume.SetUp failed for volume #147

Open
allibutldevnet opened this issue Jun 21, 2024 · 5 comments
Open

nutanix-csi MountVolume.SetUp failed for volume #147

allibutldevnet opened this issue Jun 21, 2024 · 5 comments

Comments

@allibutldevnet
Copy link

allibutldevnet commented Jun 21, 2024

I've got nutanix-csi installed on a Rancher cluster following the instructions on the readme with file storage enabled. I'm able to successfully provision PVs, but when a pod tries to attach to them I get the following error:

Warning  FailedMount  4s (x5 over 12s)  kubelet            MountVolume.SetUp failed for volume "pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb" : rpc error: code = Internal desc = rpc error: code = Internal desc = mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t nfs <fqdn>://<share name>/pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb /var/lib/kubelet/pods/eca51624-621e-44e2-b2c0-462299657f92/volumes/kubernetes.io~csi/pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb/mount
Output: mount.nfs: access denied by server while mounting <fqdn>://<share name>/pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb

For some reason there's an extra / in front of the share name, when I try the mount command without the extra / it mounts without issues. Am I missing a config somewhere?

Thanks in advance.

@tuxtof
Copy link
Collaborator

tuxtof commented Jun 24, 2024

the // is normally not causing trouble
you mention it mount without issue when you test it manually , where di you run the test ? on a worker node ?

@tuxtof
Copy link
Collaborator

tuxtof commented Jun 24, 2024

in all case , CSI driver is supported so you can open an official Nutanix support ticket

@allibutldevnet
Copy link
Author

yeah if I ssh into any of the nodes and run the mount command, i get the same issue if it has the //

root@rke-admin-wkr1-21d413a1-x92hb:~#  mount -t nfs <fqdn>://<share name>/pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb /root/test1/
mount.nfs: access denied by server while mounting <fqdn>://<share name>/pvc-1377ed49-83cd-4dbe-a9c5-60b0c02086fb

when I try the exact same command w/ just the one / it mounts as expected. I'm trying to figure out where the 2nd / is getting inserted, is that something that I can prevent from happening?

@tuxtof
Copy link
Collaborator

tuxtof commented Jun 25, 2024

in this case best is to open a supprot ticket and SRE will dig directly with you

@tuxtof
Copy link
Collaborator

tuxtof commented Jun 25, 2024

you can also verify your Nutanix files is correctly configured:

  • NFSv4 is enable
  • system security is enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants