NetApp/trident

Wrong Permission on nfs pvc

Numblesix opened this issue · 0 comments

Describe the bug
Hello we noticed that recently the owner in the pvc seems wrong to us as its root and we would have expected it to be also the random uid.

Environment
Dev

  • Trident version: 23.10
  • Trident installation flags used: none
  • Container runtime: [e.g. Docker 19.03.1-CE]
  • Kubernetes version: v1.26.9+636f2be
  • Kubernetes orchestrator: OpenShift 4.13.19
  • Kubernetes enabled feature gates: none
  • OS: based on CoreOS 4.13 -> RHEL 9.2
  • NetApp backend types: Ontap NAS
  • Other:

To Reproduce
Create pvc based on ontap_nas backend and check perm. inside pod

Expected behavior
owner and group should be same random id.

Additional context

$ ls -ald /bitnami/dokuwiki
drwxrwsrwx. 5 root 1001170000 4096 Nov  9 11:23 /bitnami/dokuwiki
$ ls -al /bitnami/dokuwiki
total 16
drwxrwsrwx.  5 root       1001170000 4096 Nov  9 11:23 .
drwxr-xr-x.  3 root       root         22 May 21 13:55 ..
drwxrwxr-x.  2 1001170000 1001170000 4096 Nov  9 11:24 conf
drwxrwxr-x. 13 1001170000 1001170000 4096 Nov  9 11:23 data
drwxr-sr-x.  5 1001170000 1001170000 4096 Nov  9 11:24 lib
$