-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.19
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
Mount is failing inside the pod but working on the node
Version-Release number of selected component (if applicable):
How reproducible:
Tried Mounting the nfs server on the node and it worked but tried same from the pod having privileged scc
Steps to Reproduce:
1. Run a custom application
~~~
oc new-app <image-name>
~~~
2.Create a service account and add scc privileged to it
~~~
oc create sa < sa-name>
oc adm policy add-scc-to-user privileged -z <sa name>
~~~
3. Set the Service Account to the deployment created
~~~
oc set sa deployment/<deployment-name> <sa-name>
~~~
4. Run the mount command inside the pod
~~~
oc rsh <pod-name>
mount -t nfs 10.0.x.x:/nfs/exports/myshare /nfs/import/
~~~
5. Run the same command inside the node it will work
~~~
oc debug node/<node-name>
mount -t nfs 10.0.x.x:/nfs/exports/myshare /nfs/import/
~~~
Actual results:
~~~
$ mount -t nfs4 10.0.88.72:/nfs/exports/myshare /nfs/import/
mount: /nfs/import: permission denied.
~~~
Expected results:
It should get mount and visible in df -h output
~~~
10.0.x.x:/nfs/exports/myshare 19G 3.2G 16G 17% /tmp
~~~
Additional info: