From cb36be3769f0f75570c59ac086ca09aaed11a01d Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Tue, 5 Feb 2019 13:18:00 +0100 Subject: [PATCH] openstack: add the API and wildcard DNS entries This adds the `-api.` as well as the `*.apps..` entries to the DNS running on the Service VM. That finally closes the loop and lets us install OpenShift on OpenStack and then open the UI in the browser (they'll need to use the DNS we provide, but that's a hard requirement at this point). --- data/data/openstack/lb/main.tf | 22 ++++++++++++-- data/data/openstack/lb/variables.tf | 4 +++ data/data/openstack/main.tf | 21 +++++++------- data/data/openstack/topology/outputs.tf | 4 +++ docs/user/openstack/README.md | 38 ++++++++++++++++++------- 5 files changed, 67 insertions(+), 22 deletions(-) diff --git a/data/data/openstack/lb/main.tf b/data/data/openstack/lb/main.tf index 0455d80c0ac..0b521359500 100644 --- a/data/data/openstack/lb/main.tf +++ b/data/data/openstack/lb/main.tf @@ -79,14 +79,29 @@ data "ignition_file" "corefile" { log errors reload 10s + + file /etc/coredns/db.${var.cluster_domain} ${var.cluster_name}-api.${var.cluster_domain} { + } + file /etc/coredns/db.${var.cluster_domain} _etcd-server-ssl._tcp.${var.cluster_name}.${var.cluster_domain} { } -${replace(join("\n", formatlist("file /etc/coredns/db.${var.cluster_domain} ${var.cluster_name}-etcd-%s.${var.cluster_domain} {\nupstream /etc/resolv.conf\n}\n", var.master_port_names)), "master-port-", "")} +${replace(join("\n", formatlist(" file /etc/coredns/db.${var.cluster_domain} ${var.cluster_name}-etcd-%s.${var.cluster_domain} {\n upstream /etc/resolv.conf\n }\n", var.master_port_names)), "master-port-", "")} forward . /etc/resolv.conf { } } + +${var.cluster_name}.${var.cluster_domain} { + log + errors + reload 10s + + file /etc/coredns/db.${var.cluster_domain} { + upstream /etc/resolv.conf + } +} + EOF } } @@ -99,7 +114,7 @@ data "ignition_file" "coredb" { content { content = <-api. +10.19.115.117 console-openshift-console.apps.. ``` -If you do expose the cluster, the installer should make it far enough along to -bring up the HA control plane and tear down the bootstrap node. It will then -hang waiting for the console to come up. +If you do expose the cluster, the installer should complete successfully. + +It will print the console URL, username and password and you should be able to go there and log in. ``` -DEBUG Still waiting for the console route: the server is currently unable to -handle the request (get routes.route.openshift.io) -... -FATAL waiting for openshift-console URL: context deadline exceeded +INFO Install complete! +INFO Run 'export KUBECONFIG=/home/thomas/go/src/github.com/openshift/installer/ostest/auth/kubeconfig' to manage the cluster with 'oc', the OpenShift CLI. +INFO The cluster is ready when 'oc login -u kubeadmin -p siDhh-STMU3-hWDPW-jM4co' succeeds (wait a few minutes). +INFO Access the OpenShift web-console here: https://console-openshift-console.apps.ostest.shiftstack.com +INFO Login to the console with user: kubeadmin, password: siDhh-STMU3-hWDPW-jM4co ``` #### Create the openstack-credentials Secret