Bug 1563317
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: | Liang Xia <lxia> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.1 | CC: | aos-bugs, aos-storage-staff, bchilds, piqin |
Target Milestone: | --- | Keywords: | NeedsTestCase |
Target Release: | 3.6.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1558564 | Environment: | |
Last Closed: | 2018-04-30 04:00:18 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: | 1558564, 1563329, 1563336 | ||
Bug Blocks: | 1560710 |
Description
Hemant Kumar
2018-04-03 15:19:37 UTC
# oc version oc v3.6.173.0.113 kubernetes v1.6.1+5115d708d7 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://qe-lxia-36-master-nfs-1:8443 openshift v3.6.173.0.113 kubernetes v1.6.1+5115d708d7 # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 (Maipo) # uname -a Linux qe-lxia-36-master-nfs-1 3.10.0-514.26.1.el7.x86_64 #1 SMP Tue Jun 20 01:16:02 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux First try to mount /run/docker.sock to /, the pod failed to start, 9s 8s 2 kubelet, qe-lxia-36-node-registry-router-1 spec.containers{test-container} Warning Failed Error: Error response from daemon: {"message":"Invalid bind mount spec \"/run/docker.sock:/\": Invalid specification: destination can't be '/' in '/run/docker.sock:/'"} Then change mount point to /mnt, the pod is up and runing, $ oc get pods testpd NAME READY STATUS RESTARTS AGE testpd 1/1 Running 0 24s $ cat pod.yaml apiVersion: v1 kind: Pod metadata: name: testpd spec: containers: - image: k8s.gcr.io/test-webserver name: test-container volumeMounts: - mountPath: /mnt name: test-volume subpath: mysock volumes: - name: test-volume hostPath: path: /run/docker.sock type: "" 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/RHSA-2018:1233 |