Skip to content

Commit

Permalink
Merge "HA related variables were used before initialization. Closes-B…
Browse files Browse the repository at this point in the history
…ug:#1639915" into R3.2
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Nov 10, 2016
2 parents 5a34d52 + d3705b3 commit 9514932
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrail_provisioning/compute/scripts/compute-server-setup.sh
Expand Up @@ -75,6 +75,10 @@ fi
source /etc/contrail/ctrl-details
HYPERVISOR=${HYPERVISOR:-"libvirt"}

INTERNAL_VIP=${INTERNAL_VIP:-none}
CONTRAIL_INTERNAL_VIP=${CONTRAIL_INTERNAL_VIP:-none}
EXTERNAL_VIP=${EXTERNAL_VIP:-$INTERNAL_VIP}

if [ $CONTROLLER != $COMPUTE ] ; then
openstack-config --del /etc/nova/nova.conf database connection
openstack-config --set /etc/nova/nova.conf DEFAULT auth_strategy keystone
Expand Down Expand Up @@ -487,9 +491,6 @@ if [ $VMWARE_IP ]; then
fi

# Openstack HA specific configs
INTERNAL_VIP=${INTERNAL_VIP:-none}
CONTRAIL_INTERNAL_VIP=${CONTRAIL_INTERNAL_VIP:-none}
EXTERNAL_VIP=${EXTERNAL_VIP:-$INTERNAL_VIP}
AMQP_PORT=5672
if [ "$CONTRAIL_INTERNAL_VIP" == "$AMQP_SERVER" ] || [ "$INTERNAL_VIP" == "$AMQP_SERVER" ]; then
AMQP_PORT=5673
Expand Down

0 comments on commit 9514932

Please sign in to comment.