Make allow_{resize|migrate}_to_same_host configurable
In preparation for supporting 2 node devstack jobs, where the first node is an all in one and the second is a compute node. Make nova config options allow_resize_to_same_host and allow_migrate_to_same_host configurable so we can turn them off when we have two compute nodes. Change-Id: If6989200b56c4597d6e8506d0dda2cc75d0881f1
This commit is contained in:
parent
6fe32059de
commit
18d6298ea1
10
lib/nova
10
lib/nova
@ -137,6 +137,10 @@ FLAT_INTERFACE=${FLAT_INTERFACE:-$GUEST_INTERFACE_DEFAULT}
|
|||||||
# running the VM - removing a SPOF and bandwidth bottleneck.
|
# running the VM - removing a SPOF and bandwidth bottleneck.
|
||||||
MULTI_HOST=`trueorfalse False $MULTI_HOST`
|
MULTI_HOST=`trueorfalse False $MULTI_HOST`
|
||||||
|
|
||||||
|
# ``NOVA_ALLOW_MOVE_TO_SAME_HOST` can be set to False in multi node devstack,
|
||||||
|
# where there are at least two nova-computes.
|
||||||
|
NOVA_ALLOW_MOVE_TO_SAME_HOST=`trueorfalse True $NOVA_ALLOW_MOVE_TO_SAME_HOST`
|
||||||
|
|
||||||
# Test floating pool and range are used for testing. They are defined
|
# Test floating pool and range are used for testing. They are defined
|
||||||
# here until the admin APIs can replace nova-manage
|
# here until the admin APIs can replace nova-manage
|
||||||
TEST_FLOATING_POOL=${TEST_FLOATING_POOL:-test}
|
TEST_FLOATING_POOL=${TEST_FLOATING_POOL:-test}
|
||||||
@ -411,8 +415,10 @@ function create_nova_conf {
|
|||||||
rm -f $NOVA_CONF
|
rm -f $NOVA_CONF
|
||||||
iniset $NOVA_CONF DEFAULT verbose "True"
|
iniset $NOVA_CONF DEFAULT verbose "True"
|
||||||
iniset $NOVA_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
|
iniset $NOVA_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
|
||||||
iniset $NOVA_CONF DEFAULT allow_resize_to_same_host "True"
|
if [ "$NOVA_ALLOW_MOVE_TO_SAME_HOST" == "True" ]; then
|
||||||
iniset $NOVA_CONF DEFAULT allow_migrate_to_same_host "True"
|
iniset $NOVA_CONF DEFAULT allow_resize_to_same_host "True"
|
||||||
|
iniset $NOVA_CONF DEFAULT allow_migrate_to_same_host "True"
|
||||||
|
fi
|
||||||
iniset $NOVA_CONF DEFAULT api_paste_config "$NOVA_API_PASTE_INI"
|
iniset $NOVA_CONF DEFAULT api_paste_config "$NOVA_API_PASTE_INI"
|
||||||
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf"
|
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf"
|
||||||
iniset $NOVA_CONF DEFAULT scheduler_driver "$SCHEDULER"
|
iniset $NOVA_CONF DEFAULT scheduler_driver "$SCHEDULER"
|
||||||
|
Loading…
Reference in New Issue
Block a user