From b061978ada22d526c5b1cb71ba25d5d04f7605c9 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 30 Oct 2014 15:24:56 +0100 Subject: [PATCH] MT#9287 ask mgmt for the /etc/ngcp_mgmt_node directly MANAGEMENT_IP is different from the one is at /etc/hosts. It's the external one not the ha_int Change-Id: I01bb7b3b5efadb5ace1dd9d8d63bd8774503454d --- deployment.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment.sh b/deployment.sh index 3d36a6e..c7ee64c 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1211,11 +1211,11 @@ EOF # needed for carrier if "$RETRIEVE_MGMT_CONFIG" ; then echo "Retrieving /etc/hosts configuration from management server" - wget --timeout=30 -O "$TARGET/etc/hosts" "${MANAGEMENT_IP}:3000/hostconfig/$(cat ${TARGET}/etc/hostname)" + wget --timeout=30 -O "${TARGET}/etc/hosts" "${MANAGEMENT_IP}:3000/hostconfig/$(cat ${TARGET}/etc/hostname)" # required for bootstrapping remote origin in ngcpcfg carrier setup - MGMT_NAME=$(awk "/^$MANAGEMENT_IP/ {print \$2}" ${TARGET}/etc/hosts) - echo "Generating /etc/ngcp_mgmt_node file [${MGMT_NAME}]" - echo "${MGMT_NAME}" | sed 's/a$// ; s/b$//' > "${TARGET}/etc/ngcp_mgmt_node" + echo "Retrieving /etc/ngcp_mgmt_node file from management server" + wget --timeout=30 -O "${TARGET}/etc/ngcp_mgmt_node" "${MANAGEMENT_IP}:3000/mgmt" + echo "mgmt_node=$(cat ${TARGET}/etc/ngcp_mgmt_node)" fi if "$PRO_EDITION" ; then