From 1d704d9e31c8a002f38afbbc33929d13baaa8e45 Mon Sep 17 00:00:00 2001 From: beierlm Date: Thu, 6 May 2021 13:58:24 -0400 Subject: [PATCH] Fix 1527 for v9.0 Manual cherry pick of c395a45 to swtich from defunct xip.io to nip.io Fixes bug 1527 in v9.0 Change-Id: I56ba9ef730a3b5ca6be4994cf7270605453fa459 Signed-off-by: beierlm --- installers/charm/ng-ui/README.md | 2 +- installers/charmed_install.sh | 8 ++++---- jenkins/ci-pipelines/ci_stage_3.groovy | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/installers/charm/ng-ui/README.md b/installers/charm/ng-ui/README.md index 9b77b5d5..2cb8cf5d 100644 --- a/installers/charm/ng-ui/README.md +++ b/installers/charm/ng-ui/README.md @@ -24,7 +24,7 @@ juju relate ng-ui nbi ## How to expose the NG-UI through ingress ```bash -juju config ng-ui site_url=ng..xip.io +juju config ng-ui site_url=ng..nip.io juju expose ng-ui ``` diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh index e215ef2b..c2b678b9 100755 --- a/installers/charmed_install.sh +++ b/installers/charmed_install.sh @@ -271,16 +271,16 @@ function deploy_charmed_osm(){ # Expose OSM services # Expose NBI - juju config -m $MODEL_NAME nbi site_url=https://nbi.${API_SERVER}.xip.io - juju config -m $MODEL_NAME ng-ui site_url=https://ui.${API_SERVER}.xip.io + juju config -m $MODEL_NAME nbi site_url=https://nbi.${API_SERVER}.nip.io + juju config -m $MODEL_NAME ng-ui site_url=https://ui.${API_SERVER}.nip.io # Expose Grafana - juju config -m $MODEL_NAME grafana-k8s juju-external-hostname=grafana.${API_SERVER}.xip.io + juju config -m $MODEL_NAME grafana-k8s juju-external-hostname=grafana.${API_SERVER}.nip.io juju expose -m $MODEL_NAME grafana-k8s wait_for_port grafana-k8s 0 # Expose Prometheus - juju config -m $MODEL_NAME prometheus-k8s juju-external-hostname=prometheus.${API_SERVER}.xip.io + juju config -m $MODEL_NAME prometheus-k8s juju-external-hostname=prometheus.${API_SERVER}.nip.io juju expose -m $MODEL_NAME prometheus-k8s wait_for_port prometheus-k8s 1 diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index bdd9dd24..ee50a3f0 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -417,9 +417,9 @@ node("${params.NODE}") { --tag ${container_name} """ } - prometheusHostname = "prometheus."+IP_ADDRESS+".xip.io" + prometheusHostname = "prometheus."+IP_ADDRESS+".nip.io" prometheusPort = 80 - osmHostname = "nbi."+IP_ADDRESS+".xip.io:443" + osmHostname = "nbi."+IP_ADDRESS+".nip.io:443" } else { // Run -k8s installer here specifying internal docker registry and docker proxy withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'gitlab-registry', @@ -463,7 +463,7 @@ node("${params.NODE}") { hostfile="${tempdir}/hosts" sh """cat << EOF > ${hostfile} 127.0.0.1 localhost -${remote.host} prometheus.${remote.host}.xip.io nbi.${remote.host}.xip.io +${remote.host} prometheus.${remote.host}.nip.io nbi.${remote.host}.nip.io EOF""" } else { hostfile=null -- 2.25.1