Unconditionally setup cells v2 when upgrading from newton
With nova change I72fb724dc13e1a5f4e97c58915b538ba761c582d you are required to have setup the cell0 database and run the simple_cell_setup command. This is needed for the devstack change that changes the default value of NOVA_CONFIGURE_CELLSV2 to True. If1af9c478e8ea2420f2523a9bb8b70fafddc86b7 Change-Id: Ie44e615384df464516aa30b9044b5e54b7d995bb
This commit is contained in:
parent
ed53369a6d
commit
ecfaa7a5a2
10
projects/60_nova/from-newton/upgrade-nova
Normal file
10
projects/60_nova/from-newton/upgrade-nova
Normal 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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user