vorburger / opendaylight-coe-kubernetes-openshift

Personal sandbox for http://OpenDaylight.org CoE Kubernetes OpenShift related stuff which may move "upstream" in due time
Apache License 2.0
1 stars 1 forks source link

The connection to the server openshift-master.rdocloud:8443 was refused - did you specify the right host or port? #6

Open vorburger opened 5 years ago

vorburger commented 5 years ago

Immediately after I solved #5 and ansible-playbook playbooks/deploy_cluster.yml had (finally) completed successfully, an e.g. oc get nodes failed with:

The connection to the server openshift-master.rdocloud:8443 was refused - did you specify the right host or port?

I'm not entirely sure what was missing:

[centos@openshift-master ~]$ ps auxwww | grep 8443
1000220+  16573  0.9  0.2 597976 38092 ?        Ssl  20:35   0:01 /usr/bin/template-service-broker start template-service-broker --secure-port=8443 --audit-log-path=- --tls-cert-file=/var/serving-cert/tls.crt --tls-private-key-file=/var/serving-cert/tls.key --v=0 --config=/var/apiserver-config/apiserver-config.yaml
vorburger commented 5 years ago

After a simple sudo reboot now, the master magically worked!!! (See output in #5.)

vorburger commented 5 years ago

For a moment I thought that it comes and goes, and I wasn't dreaming, see below; but it's seems stable now....

[centos@openshift-master ~]$ oc get nodes
NAME                        STATUS    ROLES           AGE       VERSION
openshift-master.rdocloud   Ready     master          2d        v1.11.0+d4cacc0
openshift-node1.rdocloud    Ready     compute         2d        v1.11.0+d4cacc0
openshift-node2.rdocloud    Ready     compute,infra   2d        v1.11.0+d4cacc0

[centos@openshift-master ~]$ logout
Connection to 192.168.0.11 closed.

[centos@openshift-ansible ~]$ ssh 192.168.0.11
Last login: Wed Dec 12 20:34:40 2018 from host-192-168-0-10.rdocloud

[centos@openshift-master ~]$ oc get nodes
The connection to the server openshift-master.rdocloud:8443 was refused - did you specify the right host or port?
vorburger commented 5 years ago

For a moment I thought that it comes and goes, and I wasn't dreaming

nope, I wasn't; this keeps happening - somehow my apiserver seems to keep crashing... :sob:

It seems to restart by itself after a few minutes, but this isn't great to run my test scripts, of course.

How does one debug this?