summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuraj.linkes <jlinkes@cisco.com>2017-06-15 10:02:21 +0200
committerjuraj.linkes <jlinkes@cisco.com>2017-06-15 10:02:21 +0200
commit630e952d359d55394007ba6b957325d1614c2599 (patch)
tree04c465ad62cc7831f507197834fee97a2c51dd1f
parentabb2b6f9008c7661aa0aaeb12a58aeba02106eaa (diff)
Fixes missing SDN_CONTROLLER_IP in overcloudrc.v3
JIRA: APEX-474 Change-Id: Iadc8e1614161421ae32b25e3cf10e1b5ba599250 Signed-off-by: juraj.linkes <jlinkes@cisco.com>
-rwxr-xr-xlib/post-install-functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh
index b3bfbd6..732a8bf 100755
--- a/lib/post-install-functions.sh
+++ b/lib/post-install-functions.sh
@@ -84,6 +84,7 @@ EOI
sdn_controller_ip=$(undercloud_connect stack "source stackrc;nova list | grep controller-0 | cut -d '|' -f 7 | grep -Eo [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")
echo -e "${blue}INFO: SDN Controller IP is ${sdn_controller_ip} ${reset}"
undercloud_connect stack "echo 'export SDN_CONTROLLER_IP=${sdn_controller_ip}' >> /home/stack/overcloudrc"
+ undercloud_connect stack "echo 'export SDN_CONTROLLER_IP=${sdn_controller_ip}' >> /home/stack/overcloudrc.v3"
fi
ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI