Skip to content

Commit 7d13f30

Browse files
author
Armando Migliaccio
committed
bug 985905: multi_host flag cunfusing settings
switch to using trueorfalse for parsing MULTI_HOST values. Change-Id: I289563e0cd05cda014198cf21b3c88897aba5d4f
1 parent 96c984e commit 7d13f30

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

exercises/floating_ips.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ IP=`nova show $VM_UUID | grep "private network" | get_field 2`
121121
die_if_not_set IP "Failure retrieving IP address"
122122

123123
# for single node deployments, we can ping private ips
124-
MULTI_HOST=${MULTI_HOST:-0}
125-
if [ "$MULTI_HOST" = "0" ]; then
124+
MULTI_HOST=`trueorfalse False $MULTI_HOST`
125+
if [ "$MULTI_HOST" = "False" ]; then
126126
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
127127
# network to respond?), so let's ping for a default of 15 seconds with a
128128
# timeout of a second for each ping.

exercises/quantum.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ function ping_vms {
255255
export OS_PASSWORD=nova
256256
PUBLIC_IP2=`nova show $VM_UUID2 | grep public-net1 | awk '{print $5}'`
257257

258-
MULTI_HOST=${MULTI_HOST:-0}
259-
if [ "$MULTI_HOST" = "0" ]; then
258+
MULTI_HOST=`trueorfalse False $MULTI_HOST`
259+
if [ "$MULTI_HOST" = "False" ]; then
260260
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
261261
# network to respond?), so let's ping for a default of 15 seconds with a
262262
# timeout of a second for each ping.

exercises/volumes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ IP=`nova show $VM_UUID | grep "private network" | get_field 2`
9797
die_if_not_set IP "Failure retrieving IP address"
9898

9999
# for single node deployments, we can ping private ips
100-
MULTI_HOST=${MULTI_HOST:-0}
101-
if [ "$MULTI_HOST" = "0" ]; then
100+
MULTI_HOST=`trueorfalse False $MULTI_HOST`
101+
if [ "$MULTI_HOST" = "False" ]; then
102102
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
103103
# network to respond?), so let's ping for a default of 15 seconds with a
104104
# timeout of a second for each ping.

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.253.0/29}
340340
# **MULTI_HOST** is a mode where each compute node runs its own network node. This
341341
# allows network operations and routing for a VM to occur on the server that is
342342
# running the VM - removing a SPOF and bandwidth bottleneck.
343-
MULTI_HOST=${MULTI_HOST:-False}
343+
MULTI_HOST=`trueorfalse False $MULTI_HOST`
344344

345345
# If you are using FlatDHCP on multiple hosts, set the ``FLAT_INTERFACE``
346346
# variable but make sure that the interface doesn't already have an

0 commit comments

Comments
 (0)