Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1638907

Summary: Running `oc cluster up` with oc 3.10 on windows gives "error: cannot create volume share"
Product: OpenShift Container Platform Reporter: Candace Sheremeta <cshereme>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED DEFERRED QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, brunocrt, cshereme, jokerman, mfojtik, mmccomas
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: 2019-11-21 12:55:44 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 Candace Sheremeta 2018-10-12 19:03:02 UTC
Description of problem:
https://github.com/openshift/origin/issues/20263

Getting a Docker client ...
Checking if image registry.access.redhat.com/openshift3/ose-control-plane:v3.10 is available ...
Pulling image registry.access.redhat.com/openshift3/ose-control-plane:v3.10
Pulled 1/4 layers, 26% complete
Pulled 2/4 layers, 54% complete
Pulled 3/4 layers, 88% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
Pulling image registry.access.redhat.com/openshift3/ose-cli:v3.10
Pulled 3/4 layers, 82% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
Pulling image registry.access.redhat.com/openshift3/ose-node:v3.10
Pulled 4/5 layers, 82% complete
Pulled 5/5 layers, 100% complete
Extracting
Image pull complete
Creating shared mount directory on the remote host ...
error: cannot create volume share

Version-Release number of selected component (if applicable):

oc 3.10

It sounds like a temporary work-around is for the user to downgrade to oc 3.9

Comment 1 Juan Vallejo 2018-10-12 19:26:57 UTC
Is there an additional error in your output explaining the cause behind this? (i.o.w is "cannot create volume share" the only error message you are seeing?)
Could you run the command with higher verbosity `--loglevel 8` and post that?

Comment 2 Candace Sheremeta 2018-10-15 16:53:21 UTC
Hey Juan,

The customer came back with the following:

~~~
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.10 is available ...
Creating shared mount directory on the remote host ...
~~~

I think that's probably not very helpful, so please let me know what additional information I can ask the customer for.

Thank you!

Comment 5 Bruno Tinoco 2019-03-28 18:13:15 UTC
I'm attaching the output of loglevel 8 to support troubleshooting

C:\Users\boto\Apps\openshift>oc cluster up --loglevel 8
I0328 15:07:52.431262   26976 up.go:246] Using "Always" as default image pull policy
I0328 15:07:52.434265   26976 loader.go:359] Config loaded from file C:\Users\boto/.kube/config
Getting a Docker client ...
I0328 15:07:52.435263   26976 client.go:309] No Docker environment variables found. Will attempt default socket.
I0328 15:07:52.436259   26976 client.go:314] No Docker host (DOCKER_HOST) configured. Will attempt default socket.
Checking if image openshift/origin-control-plane:v3.11 is available ...
I0328 15:07:52.444263   26976 helper.go:144] Inspecting Docker image "openshift/origin-control-plane:v3.11"
I0328 15:07:52.455262   26976 helper.go:147] Image "openshift/origin-control-plane:v3.11" found: &types.ImageInspect{ID:"sha256:e6c21d5efde63d0411cebe9c889a84a8d22068034b05fd5bed83e31507f68be7", RepoTags:[]string{"openshift/origin-control-plane:v3.11"}, RepoDigests:[]string{"openshift/origin-control-plane@sha256:6d2a13a3d98dea899fec4ff1394f0a127c12ec553848e291374c38d8799579d6"}, Parent:"", Comment:"", Created:"2019-03-26T20:43:32.004210849Z", Container:"31b57e0a327c8d5a175656a08fb19a64516d55613f0a6a1363bbbf191316ce36", ContainerConfig:(*container.Config)(0xc043184c80), DockerVersion:"1.13.1", Author:"", Config:(*container.Config)(0xc043184dc0), Architecture:"amd64", Os:"linux", OsVersion:"", Size:828738123, VirtualSize:828738123, GraphDriver:types.GraphDriverData{Data:map[string]string{"LowerDir":"/var/lib/docker/overlay2/29b785ffaf37a3027fbf20014b5f5fe4063d86e1536b2cfa96c7a1f99c9c6d7f/diff:/var/lib/docker/overlay2/0dc0bb84f0bea61b0dc745b485ae4f6681c881be083c4d47d8a9d18c257a222c/diff:/var/lib/docker/overlay2/06fbaa60826fdf6d63eba5e923fbf53607a624d8acbae7045bd298817fbdd989/diff:/var/lib/docker/overlay2/e6f2bc674b93772cb6f8d071d556ac80d5461873b0ff0e287b704c3ce0e1cf12/diff", "MergedDir":"/var/lib/docker/overlay2/892c017e65566f47856b6b52414f9fcf8b8e5be0008b3d43ef0058ba73a5bfa8/merged", "UpperDir":"/var/lib/docker/overlay2/892c017e65566f47856b6b52414f9fcf8b8e5be0008b3d43ef0058ba73a5bfa8/diff", "WorkDir":"/var/lib/docker/overlay2/892c017e65566f47856b6b52414f9fcf8b8e5be0008b3d43ef0058ba73a5bfa8/work"}, Name:"overlay2"}, RootFS:types.RootFS{Type:"layers", Layers:[]string{"sha256:d69483a6face4499acb974449d1303591fcbb5cdce5420f36f8a6607bda11854", "sha256:23cbed3d7bfa936fe728f5c3888f524c05d7d52c4cf23f0302458d045a837cd1", "sha256:d5248ee2fc3d5553a62dbc81d47e608533d2c6019d13d205373d4a07f4a760b3", "sha256:ce23242e33a91842a4d532c9023e4817e1df178a8ef990cf74a46fe404b97843", "sha256:48cf6f4a631227607a52c7ee32b8a1c8408a5d4e84498e2354ac87ebbe26a80f"}, BaseLayer:""}, Metadata:types.ImageMetadata{LastTagTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}}
I0328 15:07:52.456267   26976 helper.go:144] Inspecting Docker image "openshift/origin-cli:v3.11"
I0328 15:07:52.462261   26976 helper.go:147] Image "openshift/origin-cli:v3.11" found: &types.ImageInspect{ID:"sha256:989eab293ec71d7a5ed36731d83865a1c6ab78a1d4fb0075e80e95d315e83f4e", RepoTags:[]string{"openshift/origin-cli:v3.11"}, RepoDigests:[]string{"openshift/origin-cli@sha256:f79f129d7e34a9c3bce41dc8731a10f596a8baf98d279424fc079b27ffdbec52"}, Parent:"", Comment:"", Created:"2019-03-26T20:41:29.87991713Z", Container:"8e70d1c6ef645553c8d32455da267051fa4a9c3f81b77f6e783e2a601ccad650", ContainerConfig:(*container.Config)(0xc042fd0000), DockerVersion:"1.13.1", Author:"", Config:(*container.Config)(0xc042fd0140), Architecture:"amd64", Os:"linux", OsVersion:"", Size:383678134, VirtualSize:383678134, GraphDriver:types.GraphDriverData{Data:map[string]string{"LowerDir":"/var/lib/docker/overlay2/0dc0bb84f0bea61b0dc745b485ae4f6681c881be083c4d47d8a9d18c257a222c/diff:/var/lib/docker/overlay2/06fbaa60826fdf6d63eba5e923fbf53607a624d8acbae7045bd298817fbdd989/diff:/var/lib/docker/overlay2/e6f2bc674b93772cb6f8d071d556ac80d5461873b0ff0e287b704c3ce0e1cf12/diff", "MergedDir":"/var/lib/docker/overlay2/29b785ffaf37a3027fbf20014b5f5fe4063d86e1536b2cfa96c7a1f99c9c6d7f/merged", "UpperDir":"/var/lib/docker/overlay2/29b785ffaf37a3027fbf20014b5f5fe4063d86e1536b2cfa96c7a1f99c9c6d7f/diff", "WorkDir":"/var/lib/docker/overlay2/29b785ffaf37a3027fbf20014b5f5fe4063d86e1536b2cfa96c7a1f99c9c6d7f/work"}, Name:"overlay2"}, RootFS:types.RootFS{Type:"layers", Layers:[]string{"sha256:d69483a6face4499acb974449d1303591fcbb5cdce5420f36f8a6607bda11854", "sha256:23cbed3d7bfa936fe728f5c3888f524c05d7d52c4cf23f0302458d045a837cd1", "sha256:d5248ee2fc3d5553a62dbc81d47e608533d2c6019d13d205373d4a07f4a760b3", "sha256:ce23242e33a91842a4d532c9023e4817e1df178a8ef990cf74a46fe404b97843"}, BaseLayer:""}, Metadata:types.ImageMetadata{LastTagTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}}
I0328 15:07:52.465260   26976 helper.go:144] Inspecting Docker image "openshift/origin-node:v3.11"
I0328 15:07:52.468268   26976 helper.go:147] Image "openshift/origin-node:v3.11" found: &types.ImageInspect{ID:"sha256:a5f93a9df716b815f7d14138ba9014ba3a990fc35acbc8365bec19194ecfa4a6", RepoTags:[]string{"openshift/origin-node:v3.11"}, RepoDigests:[]string{"openshift/origin-node@sha256:98394cf4dcc3763e21f3a5cc1f4744e853501cc8e98b91e62a96fc928417958d"}, Parent:"", Comment:"", Created:"2019-03-26T20:45:58.046537072Z", Container:"f10086618f12f55d981ff4721a3b9179d96f22c860140620fe220da88cf9af2b", ContainerConfig:(*container.Config)(0xc042fd0280), DockerVersion:"1.13.1", Author:"", Config:(*container.Config)(0xc042fd03c0), Architecture:"amd64", Os:"linux", OsVersion:"", Size:1172236162, VirtualSize:1172236162, GraphDriver:types.GraphDriverData{Data:map[string]string{"LowerDir":"/var/lib/docker/overlay2/892c017e65566f47856b6b52414f9fcf8b8e5be0008b3d43ef0058ba73a5bfa8/diff:/var/lib/docker/overlay2/29b785ffaf37a3027fbf20014b5f5fe4063d86e1536b2cfa96c7a1f99c9c6d7f/diff:/var/lib/docker/overlay2/0dc0bb84f0bea61b0dc745b485ae4f6681c881be083c4d47d8a9d18c257a222c/diff:/var/lib/docker/overlay2/06fbaa60826fdf6d63eba5e923fbf53607a624d8acbae7045bd298817fbdd989/diff:/var/lib/docker/overlay2/e6f2bc674b93772cb6f8d071d556ac80d5461873b0ff0e287b704c3ce0e1cf12/diff", "MergedDir":"/var/lib/docker/overlay2/325c213b5e4230c0b707cfbed803f9e0e6fa49f3a8a828fbc4d2b3a23650898a/merged", "UpperDir":"/var/lib/docker/overlay2/325c213b5e4230c0b707cfbed803f9e0e6fa49f3a8a828fbc4d2b3a23650898a/diff", "WorkDir":"/var/lib/docker/overlay2/325c213b5e4230c0b707cfbed803f9e0e6fa49f3a8a828fbc4d2b3a23650898a/work"}, Name:"overlay2"}, RootFS:types.RootFS{Type:"layers", Layers:[]string{"sha256:d69483a6face4499acb974449d1303591fcbb5cdce5420f36f8a6607bda11854", "sha256:23cbed3d7bfa936fe728f5c3888f524c05d7d52c4cf23f0302458d045a837cd1", "sha256:d5248ee2fc3d5553a62dbc81d47e608533d2c6019d13d205373d4a07f4a760b3", "sha256:ce23242e33a91842a4d532c9023e4817e1df178a8ef990cf74a46fe404b97843", "sha256:48cf6f4a631227607a52c7ee32b8a1c8408a5d4e84498e2354ac87ebbe26a80f", "sha256:c1b22920db907930f64267fcc3d56d50193a4f405d0b63f9ee1ca024361f5a42"}, BaseLayer:""}, Metadata:types.ImageMetadata{LastTagTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}}
I0328 15:07:52.469264   26976 helper.go:106] Retrieving Docker version
I0328 15:07:52.480265   26976 helper.go:112] Docker version results: &types.Version{Version:"18.09.2", APIVersion:"1.39", MinAPIVersion:"1.12", GitCommit:"6247962", GoVersion:"go1.10.6", Os:"linux", Arch:"amd64", KernelVersion:"4.9.125-linuxkit", Experimental:false, BuildTime:"2019-02-10T04:13:06.000000000+00:00"}
Creating shared mount directory on the remote host ...
I0328 15:07:52.481266   26976 helper.go:53] Retrieving Docker daemon info
I0328 15:07:52.491264   26976 helper.go:59] Docker daemon info: &types.Info{ID:"6JHR:7ZAQ:CCSC:T2BM:6AXY:F2RY:OG7Z:7B64:7WJN:VUJB:VEDQ:2QUG", Containers:4, ContainersRunning:0, ContainersPaused:0, ContainersStopped:4, Images:15, Driver:"overlay2", DriverStatus:[][2]string{[2]string{"Backing Filesystem", "extfs"}, [2]string{"Supports d_type", "true"}, [2]string{"Native Overlay Diff", "true"}}, SystemStatus:[][2]string(nil), Plugins:types.PluginsInfo{Volume:[]string{"local"}, Network:[]string{"bridge", "host", "macvlan", "null", "overlay"}, Authorization:[]string(nil), Log:[]string{"awslogs", "fluentd", "gcplogs", "gelf", "journald", "json-file", "local", "logentries", "splunk", "syslog"}}, MemoryLimit:true, SwapLimit:true, KernelMemory:true, CPUCfsPeriod:true, CPUCfsQuota:true, CPUShares:true, CPUSet:true, IPv4Forwarding:true, BridgeNfIptables:true, BridgeNfIP6tables:true, Debug:true, NFd:22, OomKillDisable:true, NGoroutines:47, SystemTime:"2019-03-28T18:07:52.4845112Z", LoggingDriver:"json-file", CgroupDriver:"cgroupfs", NEventsListener:1, KernelVersion:"4.9.125-linuxkit", OperatingSystem:"Docker for Windows", OSType:"linux", Architecture:"x86_64", IndexServerAddress:"https://index.docker.io/v1/", RegistryConfig:(*registry.ServiceConfig)(0xc043177030), NCPU:2, MemTotal:2076532736, GenericResources:[]swarm.GenericResource(nil), DockerRootDir:"/var/lib/docker", HTTPProxy:"", HTTPSProxy:"", NoProxy:"", Name:"linuxkit-00155d122805", Labels:[]string{}, ExperimentalBuild:false, ServerVersion:"18.09.2", ClusterStore:"", ClusterAdvertise:"", Runtimes:map[string]types.Runtime{"runc":types.Runtime{Path:"runc", Args:[]string(nil)}}, DefaultRuntime:"runc", Swarm:swarm.Info{NodeID:"", NodeAddr:"", LocalNodeState:"inactive", ControlAvailable:false, Error:"", RemoteManagers:[]swarm.Peer(nil), Nodes:0, Managers:0, Cluster:(*swarm.ClusterInfo)(nil)}, LiveRestoreEnabled:false, Isolation:"", InitBinary:"docker-init", ContainerdCommit:types.Commit{ID:"9754871865f7fe2f4e74d43e2fc7ccd237edcbce", Expected:"9754871865f7fe2f4e74d43e2fc7ccd237edcbce"}, RuncCommit:types.Commit{ID:"09c8266bf2fcf9519a651b04ae54c967b9ab86ec", Expected:"09c8266bf2fcf9519a651b04ae54c967b9ab86ec"}, InitCommit:types.Commit{ID:"fec3683", Expected:"fec3683"}, SecurityOptions:[]string{"name=seccomp,profile=default"}}
I0328 15:07:52.491264   26976 run.go:195] Creating container named ""
config:
  image: openshift/origin-control-plane:v3.11
  entry point:
    /bin/bash
  command:
    -c
    #/bin/bash
set -x
nsenter --mount=/rootfs/proc/1/ns/mnt mkdir -p \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes
grep -F \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes /rootfs/proc/1/mountinfo || nsenter --mount=/rootfs/proc/1/ns/mnt mount -o bind \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes
grep -F \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes /rootfs/proc/1/mountinfo | grep shared || nsenter --mount=/rootfs/proc/1/ns/mnt mount --make-shared \var\lib\origin\cluster-up\C:\Users\boto\Apps\openshift\openshift.local.clusterup\openshift.local.volumes


host config:
  pid mode: host
  user mode:
  network mode:
  volume binds:
    /proc:/rootfs/proc:ro

I0328 15:07:52.679194   26976 run.go:200] Container created with id "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
I0328 15:07:52.679194   26976 run.go:304] Starting container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
I0328 15:07:53.492930   26976 run.go:311] Waiting for container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
I0328 15:07:54.228062   26976 run.go:317] Done waiting for container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5", rc=32
I0328 15:07:54.229048   26976 run.go:322] Reading logs from container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
I0328 15:07:54.237037   26976 run.go:330] Done reading logs from container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
I0328 15:07:54.238043   26976 run.go:337] Stdout:
I0328 15:07:54.238043   26976 run.go:338] Stderr:
+ nsenter --mount=/rootfs/proc/1/ns/mnt mkdir -p varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes
mkdir: can't create directory 'varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes': Read-only file system
+ grep -F varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes /rootfs/proc/1/mountinfo
+ nsenter --mount=/rootfs/proc/1/ns/mnt mount -o bind varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes
mount: varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes: mount point does not exist.
+ grep -F varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes /rootfs/proc/1/mountinfo
+ grep shared
+ nsenter --mount=/rootfs/proc/1/ns/mnt mount --make-shared varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes
mount: varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes: mount point does not exist.
I0328 15:07:54.240035   26976 run.go:293] Deleting container "2dfc0fa5db128d14c6be2d6a2e3100ca1d43b96fb01fda6cb16a46ff2576d9e5"
F0328 15:07:54.274547   26976 helpers.go:119] error: cannot create volume share

Comment 6 Bruno Tinoco 2019-03-28 18:16:00 UTC
It seems that there is a char escape issue with the following command line:

+ nsenter --mount=/rootfs/proc/1/ns/mnt mkdir -p varliborigincluster-upC:UsersbotoAppsopenshiftopenshift.local.clusterupopenshift.local.volumes

where "C:UsersbotoApp" should be "C:\Users\boto\App"

I hope it helps!

Comment 7 Stephen Cuppett 2019-11-21 12:55:44 UTC
OCP 3.6-3.10 is no longer on full support [1]. Marking un-triaged bugs CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Version to the appropriate version where reproduced.

[1]: https://access.redhat.com/support/policy/updates/openshift