From 04e3e502e407422e37035f8b7131640a32522e15 Mon Sep 17 00:00:00 2001 From: Jay Lau Date: Sun, 14 Sep 2014 09:23:05 -0400 Subject: [PATCH] Set allow_migrate_to_same_host as True by default 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 --- lib/nova | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nova b/lib/nova index 14d07b05bd..c3558cb53b 100644 --- a/lib/nova +++ b/lib/nova @@ -406,6 +406,7 @@ function create_nova_conf { iniset $NOVA_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL" iniset $NOVA_CONF DEFAULT auth_strategy "keystone" iniset $NOVA_CONF DEFAULT allow_resize_to_same_host "True" + iniset $NOVA_CONF DEFAULT allow_migrate_to_same_host "True" 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 scheduler_driver "$SCHEDULER"