Skip to main content
NetApp Knowledge Base

YAML script gets NFSv4 access denied because OpenShift is using AUTH_NULL to access NTFS security style root volume

Views:
23
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
NAS
Last Updated:

Applies to

  • ONTAP 9
  • NFSv4
  • YAML
  • OpenShift
  • K8s

Issue

  • application-prod.yml file scripts an automated job that creates an OpenShift or K8s container which uses NFSv4 to create a file foo.bar in an ONTAP volume that has junction path /vol1/vol2
  • Job fails due to a permission denial
    • Unable to copy file foo.bar: /vol1
    • Caused by: java.nio.file.AccessDeniedException
  • Packet trace shows that
    • Client sends V4 Call SECINFO_NO_NAME
    • ONTAP sends V4 Reply SECINFO_NO_NAME which contains flavor: AUTH_NULL (0) as the first entry in the Flavors Info list
    • Client sends V4 Call ACCESS with Flavor: AUTH_NULL (0) for the SVM's root volume
    • ONTAP sends V4 Reply ACCESS Status: NFS4ERR_ACCESS
    • Client sends V4 Call DESTROY_SESSION
  • Within the OpenShift container, grep nfs /proc/mounts shows that server:/vol1/vol2 is mounted at /mount_point with sec=sys
  • application-prod.yml contains
    • nfs:
          path: /vol1/vol2
  • The SVM's root volume's export policy squashes anonymous users to the Unix user account with UIDnumber 65534 and username pcuser  because User ID To Which Anonymous Users Are Mapped: 65534
    • vserver export-policy rule show -vserver svm1 -policyname root_vol_export_policy -instance
  • The SVM's root volume with junction path / has NTFS security style
    • file-directory show -vserver svm1 -path /

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.