Permission issues when using podman with NFS persistent volume
Issue
- When running a container with Podman or when running a POD inside RHOCP which uses Podman with a persistent volume backed by a Network File System (NFS), I get any of the following errors:
- Generic
permission denied
errors operation not permitted
Error: cannot setup namespace using newuidmap: exit status 1
error from newuidmap: newuidmap: write to uid_map failed: Operation not permitted
error from newgidmap: newgidmap: write to gid_map failed: Operation not permitted
user namespaces are not enabled in /proc/sys/user/max_user_namespaces
"open of uid_map failed: Permission denied"
- Generic
- The NFS mount point has 777 permissions
- I've followed RHOCP documentation for configuring NFS Persistent storage using NFS
- I've followed any of these KCSs to fix the problem on the NFS server side
Environment
- Red Hat Enterprise Linux (RHEL)
- 7
- 8
- 9
- Red Hat Openshift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.