ReadWriteMany volumes permissions are too restrictive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CDK Addons |
Fix Released
|
High
|
Joseph Borg | ||
Kubernetes Control Plane Charm |
Fix Released
|
Medium
|
Kevin W Monroe | ||
OpenStack Ceph-FS Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I create a notebook in Kubeflow and I specify an additional data volume with ReadWriteMany, I get an error when I try to mount or use the directory inside the notebook. I use a terminal inside Kubeflow to do the testing.
Here is what a Kubeflow notebook looks like with one additional ReadWriteOnce volume and one additional ReadWriteMany volume:
tf-docker ~ > ls -la
ls: data-vol-2: Permission denied
total 6
drwxrws--- 5 root users 1058 Mar 5 21:37 .
drwxr-xr-x 1 root root 4096 Sep 28 06:31 ..
-rw-r--r-- 1 jovyan users 0 Mar 5 21:37 allo
drwxrws--- 2 root users 0 Mar 5 22:10 data-vol-1
drwxr-x--- 2 root root 0 Mar 5 20:46 data-vol-2
drwx--S--- 3 jovyan users 1058 Mar 5 20:50 .local
tf-docker ~ > touch data-vol-
tf-docker ~ > touch data-vol-
touch: cannot touch 'data-vol-
This is on a fresh new charmed k8s 1.17 deployment with charms revisions:
ceph-fs rev 30
ceph-mon rev 45
kubernetes-master rev 808
Kubeflow has been deployed manually on top of Charmed Kubernetes. I have CephFS in the bundle and the relations in place to get a CephFS storage class in k8s. I have defined cephfs as my default storage class.
The only different thing with those two volumes is that one is RWO and the other is RWM. They come up with different permissions inside the pod and I don't understand what is responsible for that behavior.
Note that these tensorflow images from gcr.io don't run as root. They run as the jovyan user.
The tensorflow image is gcr.io/
I also tried to set a security context with a pod manifest (https:/
Changed in cdk-addons: | |
status: | New → Confirmed |
Changed in cdk-addons: | |
importance: | Undecided → Medium |
Changed in charm-kubernetes-master: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in cdk-addons: | |
status: | Confirmed → Triaged |
Changed in charm-kubernetes-master: | |
milestone: | none → 1.18 |
status: | Triaged → Fix Committed |
assignee: | nobody → Kevin W Monroe (kwmonroe) |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Changed in cdk-addons: | |
milestone: | none → 1.19 |
assignee: | nobody → Kevin W Monroe (kwmonroe) |
Changed in cdk-addons: | |
importance: | Medium → High |
Changed in cdk-addons: | |
status: | In Progress → Fix Committed |
Changed in cdk-addons: | |
status: | Fix Committed → Fix Released |
subscribed ~field-high