diff options
author | Tim Rozet <trozet@redhat.com> | 2016-07-19 13:41:49 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2016-07-19 20:48:35 -0400 |
commit | 7ade4430a23473f0e1f575593319ea62f3b46ee8 (patch) | |
tree | 54fd9bfcc73b716b14e1beb0d225df76cdbfcebb | |
parent | 40925d0cdc63e557ef04569642875cd07b8ed7ce (diff) |
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 <trozet@redhat.com>
-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 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 |