YAML script gets NFSv4 access denied because OpenShift is using AUTH_NULL to access NTFS security style root volume
Applies to
- ONTAP 9
- NFSv4
- YAML
- OpenShift
- K8s
Issue
application-prod.ymlfile scripts an automated job that creates an OpenShift or K8s container which uses NFSv4 to create a filefoo.barin an ONTAP volume that has junction path/vol1/vol2- Job fails due to a permission denial
Unable to copy file foo.bar: /vol1Caused by: java.nio.file.AccessDeniedException
- Packet trace shows that
- Client sends
V4 Call SECINFO_NO_NAME - ONTAP sends
V4 Reply SECINFO_NO_NAMEwhich containsflavor: AUTH_NULL (0)as the first entry in theFlavors Infolist - Client sends
V4 Call ACCESSwithFlavor: AUTH_NULL (0)for the SVM's root volume - ONTAP sends
V4 Reply ACCESS Status: NFS4ERR_ACCESS - Client sends
V4 Call DESTROY_SESSION
- Client sends
- Within the OpenShift container,
grep nfs /proc/mountsshows thatserver:/vol1/vol2is mounted at/mount_pointwithsec=sys application-prod.ymlcontainsnfs:path: /vol1/vol2
- The SVM's root volume's export policy squashes anonymous users to the Unix user account with UIDnumber
65534and usernamepcuserbecauseUser ID To Which Anonymous Users Are Mapped: 65534vserver export-policy rule show -vserver svm1 -policyname root_vol_export_policy -instance
- The SVM's root volume with junction path
/has NTFS security stylefile-directory show -vserver svm1 -path /
