Skip to main content
NetApp Knowledge Base

Pods accessing Trident provided NFS PVs fail with Permission Denied on certain nodes

Views:
608
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
snapx
Last Updated:

Applies to

  • Trident for Kubernetes/Openshift
  • SELinux based Redhat Enterprise Linux (RHEL) 7.9 or 8.x nodes

Issue

When deploying a pod to (mostly) newly deployed RHEL nodes that run with SELinux enabled, the pod comes online with the trident provided ontap-nas PVs, but fails on the defined mount with the following error:

sh-4.4$ cd
/mnt/pvc-trident-test/
sh-4.4$ touch test
touch: cannot touch 'test': Permission denied

Access is working normally from the node based mount:

[<USER>@<NODE_NAME> trident_test] # mkdir test_of_directory
[<USER>@<NODE_NAME> trident_test] # touch test-of-directory/touched_file
[<USER>@<NODE_NAME> trident_test] # ls -la test-of-directory
total 8
drwxrwxrwx. 2 1001600000 root 4096 Sep 14 10:35 .
drwxrwxrwx. 3 1001600000 root 4096 Sep 14 10:35 ..
-rw-rw-rw-. 1 1001600000 root    0 Sep 14 10:35 touched_file

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.