Bug 1973184
Summary: | [kata] Regular user have no write access right to mounted pv when using kata container runtime | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Wei Duan <wduan> |
Component: | sandboxed-containers | Assignee: | Ariel Adam <aadam> |
Status: | CLOSED DUPLICATE | QA Contact: | Cameron Meadors <cmeadors> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.8 | CC: | aos-bugs, dinechin, dwalsh, jfreiman, jsafrane |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-09-21 08:35:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Wei Duan
2021-06-17 11:39:59 UTC
@dwalsh Could you tell me what you think should happen based on the content of the SELinux labels? How is the volume mounted into the kata-container? virtiofsd? Could we have the precise configuration to know how the volume was mounted? Hi Christophe, 1. Looking into the pod: sh-4.4$ mount | grep mnt kataShared on /mnt/local type virtiofs (rw,relatime) 2. Check on the node: sh-4.4# mount | grep pvc-bbb65e4c-07e0-4b2c-872b-f21843288038 /dev/sdc on /var/lib/kubelet/plugins/kubernetes.io/gce-pd/mounts/wduan-0617g-gcp-rxnl9--pvc-bbb65e4c-07e0-4b2c-872b-f21843288038 type ext4 (rw,relatime,seclabel) /dev/sdc on /var/lib/kubelet/pods/705292c8-6915-4612-aca4-83b7ba7e6ad0/volumes/kubernetes.io~gce-pd/pvc-bbb65e4c-07e0-4b2c-872b-f21843288038 type ext4 (rw,relatime,seclabel) Here is my test yaml file (image could be updated if the image could not be pulled from your side): --- kind: Pod apiVersion: v1 metadata: name: mypod labels: name: frontendhttp spec: containers: - name: myfrontend image: quay.io/openshifttest/storage@sha256:a05b96d373be86f46e76817487027a7f5b8b5f87c0ac18a246b018df11529b40 ports: - containerPort: 80 name: "http-server" volumeMounts: - mountPath: "/mnt/local" name: local volumes: - name: local persistentVolumeClaim: claimName: mypvc --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mypvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi *** This bug has been marked as a duplicate of bug 1904609 *** |