Merge "Unconditionally setup cells v2 when upgrading from newton"

This commit is contained in:
Jenkins 2016-12-01 16:01:34 +00:00 committed by Gerrit Code Review
commit 61af5a077e

View File

@ -0,0 +1,10 @@
source $TARGET_DEVSTACK_DIR/lib/database
source $TARGET_DEVSTACK_DIR/lib/rpc_backend
function configure_nova_upgrade() {
# Perform an unconditional simple setup of the cells v2 models and mappings
# We need to create the cell0 database before we can sync it
initialize_database_backends
recreate_database nova_api_cell0
$NOVA_BIN_DIR/nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url)
}