Bug 1558564
Summary: | Mounting socket files from subPaths fail | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Hemant Kumar <hekumar> | |
Component: | Storage | Assignee: | Hemant Kumar <hekumar> | |
Status: | CLOSED ERRATA | QA Contact: | Qin Ping <piqin> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.9.0 | CC: | aos-bugs, aos-storage-staff, bchilds | |
Target Milestone: | --- | |||
Target Release: | 3.9.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1560710 1563317 1563329 1563336 (view as bug list) | Environment: | ||
Last Closed: | 2018-05-17 06:43:34 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1560710, 1563317, 1563329, 1563336 |
Description
Hemant Kumar
2018-03-20 13:54:26 UTC
For now, while we make the fix. One possible workaround is to directly mount "/run/docker.sock" via a new volume entry and a new VolumeMounts entry that does not uses subpath. Something like: VolumeMounts: [ { mountPath: "/run/docker.sock", name: docker_sock, readOnly: true} ], volumes: [ { name: docker_sock, hostPath: { path: "/run/docker.sock", type: "" }, ] PR upstream for the fix https://github.com/kubernetes/kubernetes/pull/61480 Opened PR for Openshift/origin - https://github.com/openshift/origin/pull/19100 This is merged in both origin and OSE.So it is done and done from development POV. Verified in OCP: v3.9.22 # cat pod.yaml kind: Pod apiVersion: v1 metadata: name: testpod spec: containers: - name: testpod image: aosqe/hello-openshift ports: - containerPort: 80 name: "http-server" volumeMounts: - mountPath: "/mnt/run/docker.sock" subPath: "run/docker.sock" name: file volumes: - name: file hostPath: path: "/" # oc exec testpod -- ls /mnt/run/docker.sock -l srw-rw---- 1 root root 0 Apr 17 02:42 /mnt/run/docker.sock Verified in OCP: oc v3.9.24 openshift v3.9.24 kubernetes v1.9.1+a0ce1bc657 # uname -a Linux host-172-16-120-35 3.10.0-693.21.1.el7.x86_64 #1 SMP Fri Feb 23 18:54:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1566 |