Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc cluster up fails - could not run "create-kubelet-flags" #20654

Closed
adambkaplan opened this issue Aug 15, 2018 · 3 comments
Closed

oc cluster up fails - could not run "create-kubelet-flags" #20654

adambkaplan opened this issue Aug 15, 2018 · 3 comments

Comments

@adambkaplan
Copy link
Contributor

Cluster up on MacOS fails with Error: error creating node config: could not run "create-kubelet-flags": Docker run error rc=1; caused by: Docker run error rc=1

No Docker container to grab logs from 😢

Version

oc v3.11.0-alpha (latest)
Docker 18.06.0-ce-mac70 (26399) - also fails on Docker 17.09
macOS 10.13.6 (17G65) (High Sierra)

Steps To Reproduce
  1. oc cluster up --tag latest
  2. Fails to run cluster up.

@openshift/sig-master

@adambkaplan
Copy link
Contributor Author

Edit - running with -v 5:

I0815 08:42:50.025568    1880 flags.go:30] Running "create-kubelet-flags"
I0815 08:42:50.025607    1880 run.go:195] Creating container named ""
config:
  image: openshift/origin-node:latest
  entry point:
    openshift
  command:
    start
    node
    --write-flags
    --config=/var/lib/origin/openshift.local.config/node/node-config.yaml
  environment:
    OPENSHIFT_CONTAINERIZED=false

host config:
  pid mode:
  user mode:
  network mode:
  volume binds:
    /Users/adkaplan/Code/go/src/github.com/openshift/origin/openshift.local.clusterup/node:/var/lib/origin/openshift.local.config/node:z

I0815 08:42:50.173882    1880 run.go:200] Container created with id "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892"
I0815 08:42:50.173921    1880 run.go:304] Starting container "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892"
I0815 08:42:50.553605    1880 run.go:311] Waiting for container "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892"
I0815 08:42:51.346123    1880 run.go:317] Done waiting for container "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892", rc=1
I0815 08:42:51.346149    1880 run.go:322] Reading logs from container "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892"
I0815 08:42:51.351609    1880 run.go:330] Done reading logs from container "a133be57133b6fcea7076046583eea2516aedd77bdf7dac0bf4a660b5fba7892"
I0815 08:42:51.352347    1880 run.go:337] Stdout:
I0815 08:42:51.352359    1880 run.go:338] Stderr:
Command "start" is deprecated, This command will be replaced by the hypershift and hyperkube binaries for starting individual components.
Error: unknown flag: --write-flags

@adambkaplan
Copy link
Contributor Author

Closing this issue - my local binary of oc was not updated per #20344

@priyankakhetawat
Copy link

Hi,
I have openshift v3.11.0+8de5c34, my oc cluster is not working, Also while doing oc cluser up its shows:
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Checking type of volume mount ...
error: Docker run error rc=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants