summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-07-20 13:20:44 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-20 13:20:44 +0000
commitfc05928f79e121e08d157abae4a1c280c2be1934 (patch)
tree26d2b13576b580243cccfac7ff85d28d00a3dd0f
parente255c4e1bfc2ab88a8bf0636cd7ca43d30ffb52c (diff)
parent7ade4430a23473f0e1f575593319ea62f3b46ee8 (diff)
Merge "Fixes incorrect SDN_CONTROLLER_IP in overcloudrc"
-rwxr-xr-xlib/post-install-functions.sh2
1 files changed, 1 insertions, 1 deletions
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