kubernetes-sigs / nfs-subdir-external-provisioner

Dynamic sub-dir volume provisioner on a remote NFS server.
Apache License 2.0
2.52k stars 751 forks source link

Access Denied by server while mounting #262

Closed kejvi-doko closed 7 months ago

kejvi-doko commented 1 year ago

I have configured an NFS server and mounted on control-plane and 2 worker nodes using the following command:

sudo mount x.x.x.x:/mnt/nfs_share /mnt/nfs_clientshare

When I install the storage provisioner, pod i stuck on ContainerCreating and from the describe command I see the following error:

Mounting arguments: -t nfs x.x.x.x:/mnt/nfs_clientshare /var/lib/kubelet/pods/6a95b73f-732a-444c-882b-ce69e4cada88/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root
Output: mount.nfs: access denied by server while mounting x.x.x.x:/mnt/nfs_clientshare

NFS Exports File:

# /etc/exports: the access control list for filesystems which may be exported
#       to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/mnt/nfs_share *(rw,sync,no_subtree_check,no_root_squash,no_all_squash,insecure)

Mount Folder Permission on Control-Plane and Worker Nodes

$:~# ls -al /mnt/
total 12
drwxr-xr-x  3 root   root    4096 Jan 26 02:16 .
drwxr-xr-x 20 root   root    4096 Jan 26 00:53 ..
drwxrwxrwx  2 nobody nogroup 4096 Jan 31 00:55 nfs_clientshare
yonatankahana commented 1 year ago

you have set the nfs.path to /mnt/nfs_clientshare instead of /mnt/nfs_share

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 7 months ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-ci-robot commented 7 months ago

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to [this](https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/issues/262#issuecomment-1899932587): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue with `/reopen` >- Mark this issue as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close not-planned > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.