Fix OSM_HOSTNAME for public cloud tests in Azure
Change-Id: I517655ed6dba0121ff73b701b260371d366b0869
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/cloud-scripts/remote-install-osm.sh b/cloud-scripts/remote-install-osm.sh
index 1b91020..f3ed497 100755
--- a/cloud-scripts/remote-install-osm.sh
+++ b/cloud-scripts/remote-install-osm.sh
@@ -16,7 +16,7 @@
# limitations under the License.
#######################################################################################
-ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@"${OSM_HOSTNAME}" \
+ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@"${OSM_IP_ADDRESS}" \
'sudo apt-get update -y && sudo apt-get upgrade -y && sudo reboot'
sleep 90
@@ -25,7 +25,7 @@
INSTALLER_PARAMETERS="-R ${REPO_BASE} -t ${DOCKER_TAG} -r ${REPO_NAME} -y"
echo "INSTALLER_URL: $INSTALLER_URL"
echo "INSTALLER_PARAMETERS: $INSTALLER_PARAMETERS"
-ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_HOSTNAME} << EOF 2>&1
+ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_IP_ADDRESS} << EOF 2>&1
set -eux
wget "${INSTALLER_URL}"
chmod +x install_osm.sh
@@ -35,12 +35,12 @@
# # Installs additional tools for telemetry
# set +eux
-# ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_HOSTNAME} 'sudo apt-get install -y sysstat'
+# ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_IP_ADDRESS} 'sudo apt-get install -y sysstat'
# set -eux
# Gets Juju password from LCM env file
set +eux
-JUJU_PWD=$(ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_HOSTNAME} 'kubectl -n osm exec -ti deploy/lcm -- env | grep OSMLCM_VCA_SECRET | cut -d = -f 2')
+JUJU_PWD=$(ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@${OSM_IP_ADDRESS} 'kubectl -n osm exec -ti deploy/lcm -- env | grep OSMLCM_VCA_SECRET | cut -d = -f 2')
set -eux
# Updates environment variables and logs them