diff options
Diffstat (limited to 'lib/post-install-functions.sh')
-rwxr-xr-x | lib/post-install-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index d0f4da44..af72d8f9 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 |