This is a normal step in the process for upgrade and is now
required for migration of flavors from the main DB to the API DB.
Since we previously made a bad decision to encode those flavors into
the first database migration, that means that even on new installs we
need to run these.
Deployment tools are going to be running this command any time they
do anything to the database post-deployment, which means adding this
to devstack is putting it in line with what normal deployments will
be doing.
Change-Id: I8ab03af9d2f4974f26a7f8487ec978caea957e45
... | ... |
@@ -708,6 +708,10 @@ function init_nova { |
708 | 708 |
|
709 | 709 |
recreate_database $NOVA_API_DB |
710 | 710 |
$NOVA_BIN_DIR/nova-manage api_db sync |
711 |
+ |
|
712 |
+ # Run online migrations on the new databases |
|
713 |
+ # Needed for flavor conversion |
|
714 |
+ $NOVA_BIN_DIR/nova-manage db online_data_migrations |
|
711 | 715 |
fi |
712 | 716 |
|
713 | 717 |
create_nova_cache_dir |