nfs-ganesha-server-and-external-provisioner icon indicating copy to clipboard operation
nfs-ganesha-server-and-external-provisioner copied to clipboard

After the service nfs-server-provisioner is restarted, the following error will be reported: access denied by server while mounting

Open pyy000pine opened this issue 3 years ago • 11 comments

pyy000pine avatar Nov 03 '22 08:11 pyy000pine

This happens in our setup too!

Wieneo avatar Jan 13 '23 17:01 Wieneo

You can fix the error by adding the following to the securityContext of the container: privileged: true

I will have a look at how we can patch this properly.

Wieneo avatar Jan 13 '23 18:01 Wieneo

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

This bot triages un-triaged 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:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

k8s-triage-robot avatar Apr 13 '23 18:04 k8s-triage-robot

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:

  • 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:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

k8s-triage-robot avatar May 13 '23 18:05 k8s-triage-robot

/remove-lifecycle rotten

ankurga avatar Jun 08 '23 12:06 ankurga

the same Screenshot 2023-08-23 at 15 14 47

EsDmitrii avatar Aug 23 '23 12:08 EsDmitrii

You can fix the error by adding the following to the securityContext of the container: privileged: true

this doesn't work, error still exists

Screenshot 2023-08-23 at 15 30 18

EsDmitrii avatar Aug 23 '23 12:08 EsDmitrii

~~same problem here and the privileged config does not work either.~~

I found out the deployment for the nfs server was not using persistence, that way, obviously, every restart would result in empty directory under /etc/exports/. Persistence configured and the problem is solved.

Sorry for the mistake, but I'll let this comment here because someone could be missing persistence configuration too.

kaiquerass avatar Sep 04 '23 18:09 kaiquerass

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

This bot triages un-triaged 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:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

k8s-triage-robot avatar Jan 27 '24 15:01 k8s-triage-robot

/remove-lifecycle stale

EsDmitrii avatar Feb 02 '24 08:02 EsDmitrii

Hitting some of the same issues. Not sure what I'm missing for the ganesha specific nfs provisioner. It seems we are running it across multiple environments. Two of our environments are fine but the third environment seems to not be mounting.

On the nfs side I did attempt to add the mountOptions detailed here: https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/issues/34

After deleting the existing pvcs I'm thinking the change worked but having difficulty validating this part.

I mainly want to confirm for the ganesha provisioner if I need the nfs-common and nfs-kernel-server packages installed. It seems we have nfs-common getting installed but can't find anywhere in the docs if these are required. If someone can confirm if those packages are required.

Main issue is that pods are going down and not mounting to the existing pvcs.

bytemarcz avatar Apr 24 '24 17:04 bytemarcz

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

This bot triages un-triaged 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:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

k8s-triage-robot avatar Jul 23 '24 18:07 k8s-triage-robot

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:

  • 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:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

k8s-triage-robot avatar Aug 22 '24 18:08 k8s-triage-robot

By default, persistence is set to false in the Helm chart:

https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/blob/master/charts/nfs-server-provisioner/values.yaml#L41

Would it be possible to set it to true by default instead?

apham0001 avatar Sep 16 '24 09:09 apham0001

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

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

/close not-planned

k8s-triage-robot avatar Oct 16 '24 09:10 k8s-triage-robot

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

In response to this:

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

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

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Oct 16 '24 09:10 k8s-ci-robot