After applying the workaround suggested in #14766, I get this issue when connecting to the origin container at https://ip:8443/.
[root@host origin]# openshift version
openshift v3.9.0-alpha.3+3fefaa2-90
kubernetes v1.9.1+a0ce1bc657
etcd 3.2.8
openshift/origin with the exact command listed in the docs.https://ip:8443/Error from the title:
missing service (service "webconsole" not found)
missing route (service "webconsole" not found)
I get the web console.
I don't get this using openshift/origin:v3.7.1.
I am running openshift origin in a container and i can see the same message on my browser.
missing service (service "webconsole" not found)
missing route (service "webconsole" not found)
Openshift origin service seems to run on the correct port.
[root@master ~]# netstat -nlp | grep 8443
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 12622/openshift
But somehow console is not working.
Any resolution yet?
Seeing this also on MacOSX with oc cluster up
Same result as well.
Are you using the docker based quick start for Openshift? If yes then this looks like a bug with the current build. Try with an older build. e.g.:
sudo docker run -d --name "origin" \
--privileged --pid=host --net=host \
-v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v /var/lib/docker:/var/lib/docker:rw \
-v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes:rslave \
openshift/origin:v3.7.1 start
That works, thanks for the tip!
Note that in 3.9, the web console no longers runs as part of the master. It runs in a pod in the openshift-web-console namespace. oc cluster up and openshift-ansible will both install the console for you.
If you run OpenShift a different way, you'll have to instantiate the console template. Edit install/origin-web-console/console-config.yaml for your cluster and run
$ oc login -u system:admin
$ oc create namespace openshift-web-console
$ oc process -f install/origin-web-console/rbac-template.yaml | oc auth reconcile -f -
$ oc process -f install/origin-web-console/console-template.yaml -p "API_SERVER_CONFIG=$(cat install/origin-web-console/console-config.yaml)" | oc apply -n openshift-web-console -f -
I've added these instructions to the origin-web-console-server README. We might link to that somewhere from the origin repo.
https://github.com/openshift/origin-web-console-server#installing-the-console
Let me they work for you.
Closing per my comments above. #18680 adds a better error page when the console is not installed.
/close
If yes then this looks like a bug with the current build. Try with an older build.
Is there an open BUG/ISSUE to track this when starting with docker containers? For devs coming across the INSTALL SECTION they are going to be a bit confused as to why things are not working properly.
@cdancy Thanks for pointing this out. I opened an issue: https://github.com/openshift/openshift-docs/issues/8088
We'll get that updated.
@spadgett awesome and thanks. We just picked up a story to start playing around with origin and I've been banging my head the past couple hours trying to figure out why things were not working though the doc clearly states it should.
@cdancy Sure. I'd recommend downloading oc 3.7 and running oc cluster up. It should be a better first experience. I don't think the topic you link will install a router or registry either, but cluster up will.
https://github.com/openshift/origin/releases/tag/v3.7.0
https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md
Using 3.7.0 does indeed work. Yeah I'd rather a pure docker experience if at all possible so I don't have to worry about installing additional dependencies and can easily wire up a gradle script say with the gradle-docker-plugin and get going fairly easily.
Most helpful comment
I've added these instructions to the origin-web-console-server README. We might link to that somewhere from the origin repo.
https://github.com/openshift/origin-web-console-server#installing-the-console
Let me they work for you.