From 7214274c5938033b51d828e8d0ac1af280cab826 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Tue, 12 Jul 2016 14:36:40 -0400 Subject: Adds SDN Controller IP to overcloudrc file JIRA: APEX-152 Change-Id: Id64a42531711c53ad453cd176aab2a9773a71811 Signed-off-by: Tim Rozet --- lib/post-install-functions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/post-install-functions.sh') diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index e1f121b9..912a2a11 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -64,6 +64,14 @@ EOI done fi + # TODO fix this when HA SDN controllers are supported + if [ "${deploy_options_array['sdn_controller']}" != 'False' ]; then + echo -e "${blue}INFO: Finding SDN Controller IP for overcloudrc...${reset}" + sdn_controller_ip=$(overcloud_connect controller0 "facter ipaddress_br_ex") + 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" + fi + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <