origin: oc cluster up broken in rc1 with Docker for OSX
oc cluster up is broken in rc1 and worked just fine with alpha3
using oc version alpha3 with --version=v1.3.0-rc1 successfully starts the cluster.
Version
oc-13 v1.3.0-rc1 kubernetes v1.3.0+52492b4 features: Basic-Auth
OS X 10.11.6 (15G1004) Docker for OSX OS X 1.12.0-a (build: 11213) ad6ab836187e4111082447b7c0a6a74d01929a5c
Steps To Reproduce
- Reset Docker for OSX to factory defaults
- Add 172.30.0.0/16 to insecure registries
- run
oc cluster up
Current Result
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v1.3.0-rc1 image ... OK
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
Using nsenter mounter for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ...
Using 192.168.1.42 as the server IP
-- Starting OpenShift container ...
Creating initial OpenShift configuration
FAIL
Error: could not create OpenShift configuration
Caused By:
Error: cannot start container 8bb0f10aede3920d2c9dd1030fbca63ac83861b99b79ad1419f1b57141fd173d
Caused By:
Error: API error (500): {"message":"linux mounts: Path /var/lib/origin/openshift.local.volumes is mounted on /var but it is not a shared or slave mount."}
Expected Result
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v1.3.0-rc1 image ... OK
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
Using Docker shared volumes for OpenShift volumes
-- Checking Docker version ... OK
-- Creating host directories ... OK
-- Finding server IP ...
Using 192.168.1.42 as the server IP
-- Starting OpenShift container ...
Creating initial OpenShift configuration
Starting OpenShift using container 'origin'
Waiting for API server to start listening
OpenShift server started
-- Installing registry ... OK
-- Installing router ... OK
-- Importing image streams ... OK
-- Importing templates ... OK
-- Login to server ... OK
-- Creating initial project "myproject" ... OK
-- Server Information ...
OpenShift server started.
The server is accessible via web console at:
https://192.168.1.42:8443
You are logged in as:
User: developer
Password: developer
To login as administrator:
oc login -u system:admin
Start the cluster.
Additional Information
It works fine with alpha-3 (thats how I got the expected output):
oc-13-alpha3 cluster up --version=v1.3.0-rc1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (7 by maintainers)
ok, so I confirmed that this is no longer an issue with beta25, which you can download from here (beta channel): https://docs.docker.com/docker-for-mac/ however, if you need to use the release version, or an older version, here’s a workaround. Before starting ‘cluster up’, run this: docker run -v /:/rootfs -ti --rm --entrypoint=/bin/bash --privileged openshift/origin:v1.3.0-rc1 -c “mv /rootfs/bin/findmnt /rootfs/bin/findmnt.backup” This is to stop ‘cluster up’ from using the nsenter mounter when on the Mac.