From ecfaa7a5a235a69a0ead8b53dd4b2807093c9cfa Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Thu, 3 Nov 2016 14:33:46 -0400 Subject: [PATCH] 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 --- projects/60_nova/from-newton/upgrade-nova | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 projects/60_nova/from-newton/upgrade-nova diff --git a/projects/60_nova/from-newton/upgrade-nova b/projects/60_nova/from-newton/upgrade-nova new file mode 100644 index 00000000..10e1199f --- /dev/null +++ b/projects/60_nova/from-newton/upgrade-nova @@ -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) +}