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
changes/77/477/2
Victor Seva 11 years ago
parent f94e6a06be
commit b061978ada

@ -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

Loading…
Cancel
Save