From 7ade4430a23473f0e1f575593319ea62f3b46ee8 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Tue, 19 Jul 2016 13:41:49 -0400 Subject: Fixes incorrect SDN_CONTROLLER_IP in overcloudrc Previous patch set this to be the public IP of the first controller. However we only allow ODL to bind to the admin/API IP of the first controller for security reasons. JIRA: APEX-152 Change-Id: I22addbb9e7c3fcd850b9695b846357bf9447cd50 Signed-off-by: Tim Rozet --- lib/post-install-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index ec2ca89f..8ccd896f 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -67,7 +67,7 @@ EOI # 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") + 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" fi -- cgit 1.2.3-korg