After OpenStack was installed with devstack on a single node, cold
migration always failed because the default value of
allow_migrate_to_same_host is False. This means that devstack do not
support cold migrate a VM to a same host by default.
Normally, a developer will set up OpenStack with devstack on a single
node, so it is better that we change this value to True to enable
cold migration with a single node after installed by devstack.
Change-Id: I961395f1c79d9600917b6186964c13c92a8a6266
| ... | ... |
@@ -406,6 +406,7 @@ function create_nova_conf {
|
| 406 | 406 |
iniset $NOVA_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL" |
| 407 | 407 |
iniset $NOVA_CONF DEFAULT auth_strategy "keystone" |
| 408 | 408 |
iniset $NOVA_CONF DEFAULT allow_resize_to_same_host "True" |
| 409 |
+ iniset $NOVA_CONF DEFAULT allow_migrate_to_same_host "True" |
|
| 409 | 410 |
iniset $NOVA_CONF DEFAULT api_paste_config "$NOVA_API_PASTE_INI" |
| 410 | 411 |
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf" |
| 411 | 412 |
iniset $NOVA_CONF DEFAULT scheduler_driver "$SCHEDULER" |