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 should give better warning/error when port 8443 is not accessible #10807

Closed
GrahamDumpleton opened this issue Sep 6, 2016 · 1 comment

Comments

@GrahamDumpleton
Copy link

If inbound connections on port 8443 are blocked off on system due to firewall rules, the error messages from oc cluster up when it fails is not particularly helpful.

$ oc cluster up
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v1.3.0-alpha.3 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.178.53 as the server IP
-- Starting OpenShift container ...
   Creating initial OpenShift configuration
   Starting OpenShift using container 'origin'
   Waiting for API server to start listening
FAIL
   Error: timed out waiting for OpenShift container "origin"
   Details:
     Last 10 lines of "origin" container log:
     E0906 01:04:48.580103    4119 util.go:45] Metric for replenishment_controller already registered
     E0906 01:04:48.580121    4119 util.go:45] Metric for replenishment_controller already registered
     E0906 01:04:48.580133    4119 util.go:45] Metric for replenishment_controller already registered
     E0906 01:04:48.580140    4119 util.go:45] Metric for replenishment_controller already registered
     E0906 01:04:48.580147    4119 util.go:45] Metric for replenishment_controller already registered
     E0906 01:04:48.580154    4119 util.go:45] Metric for replenishment_controller already registered
     I0906 01:04:48.624268    4119 endpoints_controller.go:322] Waiting for pods controller to sync, requeuing service default/kubernetes
     I0906 01:04:48.740742    4119 endpoints_controller.go:322] Waiting for pods controller to sync, requeuing service default/kubernetes
     I0906 01:04:48.777242    4119 start_master.go:678] Started Origin Controllers
     I0906 01:04:48.842413    4119 endpoints_controller.go:322] Waiting for pods controller to sync, requeuing service default/kubernetes

Nothing in all that to say port 8443 can't be accessed.

Is only if you know to use --loglevel 9 that you can work out what the problem might be as see a bunch of these:

   Waiting for API server to start listening
I0906 11:00:03.725902    1554 net.go:105] Got error &errors.errorString{s:"EOF"}, trying again: "192.168.178.53:8443"
I0906 11:00:04.727484    1554 net.go:105] Got error &errors.errorString{s:"EOF"}, trying again: "192.168.178.53:8443"
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

4 participants