openshift / origin-web-console

Web Console for the OpenShift Application Platform
https://www.openshift.org/
Apache License 2.0
123 stars 230 forks source link

minishift webconsole access #3148

Closed javadan closed 5 years ago

javadan commented 5 years ago

First time trying out minishift (v1.34.1 linux-64 from https://github.com/minishift/minishift/releases). Installed on Centos7 machine on the network.

Can't access webconsole after startup.

Starting from scratch...

Steps:

  1. minishift delete
  2. ps -ef (nothing running)
  3. docker ps (nothing running)
  4. minishift start --vm-driver=virtualbox

-- Starting profile 'minishift' -- Check if deprecated options are used ... OK -- Checking if https://github.com is reachable ... OK -- Checking if requested OpenShift version 'v3.11.0' is valid ... OK -- Checking if requested OpenShift version 'v3.11.0' is supported ... OK -- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK -- Checking if VirtualBox is installed ... OK -- Checking the ISO URL ... OK -- Checking if provided oc flags are supported ... OK -- Starting the OpenShift cluster using 'virtualbox' hypervisor ... -- Minishift VM will be configured with ... Memory: 4 GB vCPUs : 2 Disk size: 20 GB -- Starting Minishift VM ............................... OK -- Checking for IP address ... OK -- Checking for nameservers ... OK -- Checking if external host is reachable from the Minishift VM ... Pinging 8.8.8.8 ... OK -- Checking HTTP connectivity from the VM ... Retrieving 10.20.2.35 ... FAIL VM cannot connect to external URL with HTTP -- Checking if persistent storage volume is mounted ... OK -- Checking available disk space ... 1% used OK -- Writing current configuration for static assignment of IP address ... OK Importing 'openshift/origin-control-plane:v3.11.0' ................ OK Importing 'openshift/origin-docker-registry:v3.11.0' ................... OK Importing 'openshift/origin-haproxy-router:v3.11.0' .................... OK -- OpenShift cluster will be configured with ... Version: v3.11.0 -- Copying oc binary from the OpenShift container image to VM ... OK -- Starting OpenShift cluster .............................................................................. Getting a Docker client ... Checking if image openshift/origin-control-plane:v3.11.0 is available ... Pulling image openshift/origin-cli:v3.11.0 E0911 09:47:42.562106 5320 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: opv3.11.0 anonymously Pulled 1/4 layers, 27% complete Pulled 2/4 layers, 67% complete Pulled 3/4 layers, 77% complete Pulled 4/4 layers, 100% complete Extracting Image pull complete Pulling image openshift/origin-node:v3.11.0 E0911 09:48:15.632953 5320 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: op:v3.11.0 anonymously Pulled 4/6 layers, 68% complete Pulled 5/6 layers, 99% complete Pulled 6/6 layers, 100% complete Extracting Image pull complete Checking type of volume mount ... Determining server IP ... Using public hostname IP 192.168.99.102 as the host IP Checking if OpenShift is already running ... Checking for supported Docker version (=>1.22) ... Checking if insecured registry is configured properly in Docker ... Checking if required ports are available ... Checking if OpenShift client is configured properly ... Checking if image openshift/origin-control-plane:v3.11.0 is available ... Starting OpenShift using openshift/origin-control-plane:v3.11.0 ... I0911 09:49:06.793170 5320 config.go:40] Running "create-master-config" I0911 09:49:10.648703 5320 config.go:46] Running "create-node-config" I0911 09:49:12.809229 5320 flags.go:30] Running "create-kubelet-flags" I0911 09:49:13.632715 5320 run_kubelet.go:49] Running "start-kubelet" I0911 09:49:14.043288 5320 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ... I0911 09:50:46.101652 5320 interface.go:26] Installing "kube-proxy" ... I0911 09:50:46.104748 5320 interface.go:26] Installing "kube-dns" ... I0911 09:50:46.104835 5320 interface.go:26] Installing "openshift-service-cert-signer-operator" ... I0911 09:50:46.104849 5320 interface.go:26] Installing "openshift-apiserver" ... I0911 09:50:46.104956 5320 apply_template.go:81] Installing "openshift-apiserver" I0911 09:50:46.108809 5320 apply_template.go:81] Installing "kube-proxy" I0911 09:50:46.112184 5320 apply_template.go:81] Installing "kube-dns" I0911 09:50:46.112885 5320 apply_template.go:81] Installing "openshift-service-cert-signer-operator" I0911 09:50:57.067818 5320 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert- I0911 09:53:26.127446 5320 run_self_hosted.go:242] openshift-apiserver available I0911 09:53:26.128642 5320 interface.go:26] Installing "openshift-controller-manager" ... I0911 09:53:26.128678 5320 apply_template.go:81] Installing "openshift-controller-manager" I0911 09:53:32.181444 5320 interface.go:41] Finished installing "openshift-controller-manager" Adding default OAuthClient redirect URIs ... Adding sample-templates ... Adding web-console ... Adding registry ... Adding router ... Adding persistent-volumes ... Adding centos-imagestreams ... I0911 09:53:32.238956 5320 interface.go:26] Installing "sample-templates" ... I0911 09:53:32.238972 5320 interface.go:26] Installing "openshift-web-console-operator" ... I0911 09:53:32.238995 5320 interface.go:26] Installing "openshift-image-registry" ... I0911 09:53:32.239007 5320 interface.go:26] Installing "openshift-router" ... I0911 09:53:32.239015 5320 interface.go:26] Installing "persistent-volumes" ... I0911 09:53:32.239022 5320 interface.go:26] Installing "centos-imagestreams" ... I0911 09:53:32.239101 5320 apply_list.go:67] Installing "centos-imagestreams" I0911 09:53:32.239314 5320 interface.go:26] Installing "sample-templates/mysql" ... I0911 09:53:32.239325 5320 interface.go:26] Installing "sample-templates/postgresql" ... I0911 09:53:32.239335 5320 interface.go:26] Installing "sample-templates/cakephp quickstart" ... I0911 09:53:32.239343 5320 interface.go:26] Installing "sample-templates/dancer quickstart" ... I0911 09:53:32.239363 5320 interface.go:26] Installing "sample-templates/django quickstart" ... I0911 09:53:32.239372 5320 interface.go:26] Installing "sample-templates/nodejs quickstart" ... I0911 09:53:32.239380 5320 interface.go:26] Installing "sample-templates/mongodb" ... I0911 09:53:32.239387 5320 interface.go:26] Installing "sample-templates/mariadb" ... I0911 09:53:32.239395 5320 interface.go:26] Installing "sample-templates/sample pipeline" ... I0911 09:53:32.239405 5320 interface.go:26] Installing "sample-templates/rails quickstart" ... I0911 09:53:32.239423 5320 interface.go:26] Installing "sample-templates/jenkins pipeline ephemeral" ... I0911 09:53:32.239498 5320 apply_list.go:67] Installing "sample-templates/jenkins pipeline ephemeral" I0911 09:53:32.240303 5320 apply_template.go:81] Installing "openshift-web-console-operator" I0911 09:53:32.242124 5320 apply_list.go:67] Installing "sample-templates/mysql" I0911 09:53:32.242429 5320 apply_list.go:67] Installing "sample-templates/postgresql" I0911 09:53:32.242635 5320 apply_list.go:67] Installing "sample-templates/cakephp quickstart" I0911 09:53:32.242825 5320 apply_list.go:67] Installing "sample-templates/dancer quickstart" I0911 09:53:32.243026 5320 apply_list.go:67] Installing "sample-templates/django quickstart" I0911 09:53:32.243221 5320 apply_list.go:67] Installing "sample-templates/nodejs quickstart" I0911 09:53:32.243417 5320 apply_list.go:67] Installing "sample-templates/mongodb" I0911 09:53:32.243616 5320 apply_list.go:67] Installing "sample-templates/mariadb" I0911 09:53:32.243834 5320 apply_list.go:67] Installing "sample-templates/sample pipeline" I0911 09:53:32.244021 5320 apply_list.go:67] Installing "sample-templates/rails quickstart" I0911 09:53:56.410677 5320 interface.go:41] Finished installing "sample-templates/mysql" "sample-templates/postgmple-templates/nodejs quickstart" "sample-templates/mongodb" "sample-templates/mariadb" "sample-templates/sample pi I0911 09:54:35.331228 5320 interface.go:41] Finished installing "sample-templates" "openshift-web-console-operat Login to server ... Creating initial project "myproject" ... Server Information ... OpenShift server started.

The server is accessible via web console at: https://192.168.99.102:8443/console

You are logged in as: User: developer Password:

To login as administrator: oc login -u system:admin


5. oc version

oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://192.168.99.102:8443 kubernetes v1.11.0+d4cacc0


7. oc cluster up --public-hostname=10.20.2.35

Getting a Docker client ... Checking if image openshift/origin-control-plane:v3.11 is available ... Checking type of volume mount ... Determining server IP ... Using public hostname IP 10.20.2.35 as the host IP Checking if OpenShift is already running ... Checking for supported Docker version (=>1.22) ... Checking if insecured registry is configured properly in Docker ... Checking if required ports are available ... Checking if OpenShift client is configured properly ... Checking if image openshift/origin-control-plane:v3.11 is available ... Starting OpenShift using openshift/origin-control-plane:v3.11 ... I0911 12:49:15.224134 15711 flags.go:30] Running "create-kubelet-flags" I0911 12:49:16.687399 15711 run_kubelet.go:49] Running "start-kubelet" I0911 12:49:17.192067 15711 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ... I0911 12:49:43.318682 15711 interface.go:26] Installing "kube-proxy" ... I0911 12:49:43.318702 15711 interface.go:26] Installing "kube-dns" ... I0911 12:49:43.318708 15711 interface.go:26] Installing "openshift-service-cert-signer-operator" ... I0911 12:49:43.318714 15711 interface.go:26] Installing "openshift-apiserver" ... I0911 12:49:43.318759 15711 apply_template.go:81] Installing "openshift-apiserver" I0911 12:49:43.318966 15711 apply_template.go:81] Installing "kube-proxy" I0911 12:49:43.319142 15711 apply_template.go:81] Installing "kube-dns" I0911 12:49:43.319270 15711 apply_template.go:81] Installing "openshift-service-cert-signer-operator" I0911 12:50:04.824509 15711 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver" I0911 12:51:06.949583 15711 run_self_hosted.go:242] openshift-apiserver available I0911 12:51:06.949628 15711 interface.go:26] Installing "openshift-controller-manager" ... I0911 12:51:06.949650 15711 apply_template.go:81] Installing "openshift-controller-manager" I0911 12:51:12.752430 15711 interface.go:41] Finished installing "openshift-controller-manager" Adding default OAuthClient redirect URIs ... Adding router ... Adding web-console ... Adding registry ... Adding sample-templates ... Adding persistent-volumes ... Adding centos-imagestreams ... I0911 12:51:12.827972 15711 interface.go:26] Installing "openshift-router" ... I0911 12:51:12.827993 15711 interface.go:26] Installing "openshift-web-console-operator" ... I0911 12:51:12.828009 15711 interface.go:26] Installing "openshift-image-registry" ... I0911 12:51:12.828031 15711 interface.go:26] Installing "sample-templates" ... I0911 12:51:12.828041 15711 interface.go:26] Installing "persistent-volumes" ... I0911 12:51:12.828052 15711 interface.go:26] Installing "centos-imagestreams" ... I0911 12:51:12.828154 15711 apply_list.go:67] Installing "centos-imagestreams" I0911 12:51:12.834447 15711 interface.go:26] Installing "sample-templates/nodejs quickstart" ... I0911 12:51:12.834468 15711 interface.go:26] Installing "sample-templates/jenkins pipeline ephemeral" ... I0911 12:51:12.834475 15711 interface.go:26] Installing "sample-templates/mongodb" ... I0911 12:51:12.834485 15711 interface.go:26] Installing "sample-templates/mysql" ... I0911 12:51:12.834492 15711 interface.go:26] Installing "sample-templates/postgresql" ... I0911 12:51:12.834498 15711 interface.go:26] Installing "sample-templates/cakephp quickstart" ... I0911 12:51:12.834504 15711 interface.go:26] Installing "sample-templates/sample pipeline" ... I0911 12:51:12.834509 15711 interface.go:26] Installing "sample-templates/mariadb" ... I0911 12:51:12.834516 15711 interface.go:26] Installing "sample-templates/dancer quickstart" ... I0911 12:51:12.834522 15711 interface.go:26] Installing "sample-templates/django quickstart" ... I0911 12:51:12.834527 15711 interface.go:26] Installing "sample-templates/rails quickstart" ... I0911 12:51:12.834609 15711 apply_list.go:67] Installing "sample-templates/rails quickstart" I0911 12:51:12.835284 15711 apply_list.go:67] Installing "sample-templates/nodejs quickstart" I0911 12:51:12.835434 15711 apply_list.go:67] Installing "sample-templates/jenkins pipeline ephemeral" I0911 12:51:12.835551 15711 apply_list.go:67] Installing "sample-templates/mongodb" I0911 12:51:12.835670 15711 apply_list.go:67] Installing "sample-templates/mysql" I0911 12:51:12.835787 15711 apply_list.go:67] Installing "sample-templates/postgresql" I0911 12:51:12.835897 15711 apply_list.go:67] Installing "sample-templates/cakephp quickstart" I0911 12:51:12.836000 15711 apply_list.go:67] Installing "sample-templates/sample pipeline" I0911 12:51:12.836111 15711 apply_list.go:67] Installing "sample-templates/mariadb" I0911 12:51:12.836223 15711 apply_list.go:67] Installing "sample-templates/dancer quickstart" I0911 12:51:12.847592 15711 apply_list.go:67] Installing "sample-templates/django quickstart" I0911 12:51:12.849979 15711 apply_template.go:81] Installing "openshift-web-console-operator" I0911 12:51:36.847463 15711 interface.go:41] Finished installing "sample-templates/nodejs quickstart" "sample-templates/jenkins pipeline ephemeral" "sample-templates/mongodb" "sample-templates/mysql" "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/sample pipeline" "sample-templates/mariadb" "sample-templates/dancer quickstart" "sample-templates/django quickstart" "sample-templates/rails quickstart" I0911 12:51:38.387747 15711 interface.go:41] Finished installing "openshift-router" "openshift-web-console-operator" "openshift-image-registry" "sample-templates" "persistent-volumes" "centos-imagestreams" Server Information ... OpenShift server started.

The server is accessible via web console at: https://10.20.2.35:8443



8.  Try URLs:
http://10.20.2.35:8443
http://10.20.2.35:8443/console
https://192.168.99.102:8443
https://192.168.99.102:8443/console

All return "This site can’t be reached"

`docker ps` shows everything running.

Anything obvious I'm doing wrong?
javadan commented 5 years ago

Ok nevermind. Was a firewall issue. Derp.