installer: libvirt: Unable to access web console
Version
$ openshift-install version
v0.9.0-master
(compiled from master)
Platform (aws|libvirt|openstack):
libvirt
What happened?
I’m trying to install openshift 4 using this installer. It seems, that everything was OK. I’ve done all the steps described in here. Installation was ok, I was able to login using oc with credentials from the installation output, but I’m not able to access web console.
Looking at openshift-console project, everything seems ok:
OUTPUT
╭─rhopp@dhcp-10-40-4-106 ~/go/src/github.com/openshift/installer ‹master*›
╰─$ oc project openshift-console
Already on project "openshift-console" on server "https://test1-api.tt.testing:6443".
╭─rhopp@dhcp-10-40-4-106 ~/go/src/github.com/openshift/installer ‹master*›
╰─$ oc get all
NAME READY STATUS RESTARTS AGE
pod/console-operator-79b8b8cb8d-cgpfn 1/1 Running 1 1h
pod/openshift-console-6ddfcc76b5-2kmpx 1/1 Running 0 1h
pod/openshift-console-6ddfcc76b5-sp5zm 1/1 Running 0 1h
pod/openshift-console-6ddfcc76b5-z52hq 1/1 Running 0 1h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/console ClusterIP 172.30.198.57 <none> 443/TCP 1h
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/console-operator 1 1 1 1 1h
deployment.apps/openshift-console 3 3 3 3 1h
NAME DESIRED CURRENT READY AGE
replicaset.apps/console-operator-79b8b8cb8d 1 1 1 1h
replicaset.apps/openshift-console-6ddfcc76b5 3 3 3 1h
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
route.route.openshift.io/console console-openshift-console.apps.test1.tt.testing console https reencrypt/Redirect None
The pods are running, service and route are up, but accessing https://console-openshift-console.apps.test1.tt.testing in browser says it couldn’t resolve IP address.
As part of the setup I’ve configured dnsmasq as it was described in the libvirt guide.
For example, ping test1-api.tt.testing works as expected, but ping console-openshift-console.apps.test1.tt.testing throws:
ping: console-openshift-console.apps.test1.tt.testing: Name or service not known
What you expected to happen?
Web console to be accessible.
How to reproduce it (as minimally and precisely as possible)?
Follow https://github.com/openshift/installer/blob/master/docs/dev/libvirt-howto.md (my host machine is Fedora 29)
INSTALLATION OUTPUT
╭─rhopp@localhost ~/go/src/github.com/openshift/installer/bin ‹master*›
╰─$ ./openshift-install create cluster
? SSH Public Key [Use arrows to move, type to filter, ? for more help]
/home/rhopp/.ssh/gitlab.cee.key.pub
> <none>
? SSH Public Key [Use arrows to move, type to filter, ? for more help]
> /home/rhopp/.ssh/gitlab.cee.key.pub
<none>
? SSH Public Key /home/rhopp/.ssh/gitlab.cee.key.pub
? Platform [Use arrows to move, type to filter]
> aws
libvirt
openstack
? Platform [Use arrows to move, type to filter]
aws
> libvirt
openstack
? Platform libvirt
? Libvirt Connection URI [? for help] (qemu+tcp://192.168.122.1/system)
? Libvirt Connection URI qemu+tcp://192.168.122.1/system
? Base Domain [? for help] tt.testing
? Base Domain tt.testing
? Cluster Name [? for help] test1
? Cluster Name test1
? Pull Secret [? for help] ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* INFO Fetching OS image: redhat-coreos-maipo-47.247-qemu.qcow2.gz
INFO Creating cluster...
INFO Waiting up to 30m0s for the Kubernetes API...
INFO API v1.11.0+e3fa228 up
INFO Waiting up to 30m0s for the bootstrap-complete event...
INFO Destroying the bootstrap resources...
INFO Waiting up to 10m0s for the openshift-console route to be created...
INFO Install complete!
INFO Run 'export KUBECONFIG=/home/rhopp/go/src/github.com/openshift/installer/bin/auth/kubeconfig' to manage the cluster with 'oc', the OpenShift CLI.
INFO The cluster is ready when 'oc login -u kubeadmin -p 5tQwM-fXfkC-MIeAH-BmLeN' succeeds (wait a few minutes).
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.test1.tt.testing
INFO Login to the console with user: kubeadmin, password: 5tQwM-fXfkC-MIeAH-BmLeN
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 47 (29 by maintainers)
Commits related to this issue
- docs/dev/libvirt/README.md: Add troubleshooting docs for libvirt console issue. Currently cluster created by libvirt not able to resolve the auth route and because of that console doesn't comeup. Thi... — committed to praveenkumar/installer by praveenkumar 8 years ago
- libvirt: support setting network dnsmasq options through the install config Since libvirt 5.6.0, there is an option to pass in dnsmasq options through the libvirt network [1]. This addresses the foll... — committed to Prashanth684/installer by Prashanth684 6 years ago
- libvirt: support setting network dnsmasq options through the install config Since libvirt 5.6.0, there is an option to pass in dnsmasq options through the libvirt network [1]. This addresses the foll... — committed to dale-fu/installer by Prashanth684 6 years ago
Last week while trying to do some basic verification I ran into an issue where the workaround listed in the installer troubleshooting doc wasn’t working. We figured out it was due to the fact that I had spun up a cluster with three workers, but the ingress controller has 2 set in its replicaset. So neither of those pods landed on the. 51 worker – and we saw the same symptoms as if no workaround had been applied. It doesn’t look like there’s a way to do wildcards and have multiple IPs for a host entry. dnsmasq seems to take the last entry in a file as the IP instead of do any kind of round-robin. Any suggestions? Or do we just need to edit the manifest for the ingress operator to create 3 replicas?
/remove-lifecycle rotten
This is still something we want to fix. There are just a surprisingly large number of pieces that are falling in place in the background that we need before we can tackle this.
#411 was closed, since AWS works. Reopening for libvirt.