Run placement db online_data_migrations before starting placement-api

This runs the online data migrations for placement after upgrading
to new code and synchronizing the DB schema.

Change-Id: I91e7a7e451b5756722eef20ed4ee61f2d35c2fd6
This commit is contained in:
Matt Riedemann 2019-01-17 15:01:42 -05:00
parent 7116ec3b1a
commit cc012730f7
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ upgrade_project placement $RUN_DIR $BASE_DEVSTACK_BRANCH
# Simulate init_placement()
# Migrate the database
$PLACEMENT_BIN_DIR/placement-manage db sync || die $LINENO "DB sync error"
# Run the online data migrations.
$PLACEMENT_BIN_DIR/placement-manage db online_data_migrations \
|| die $LINENO "Failed to run online_data_migrations"
# Start Placement:
start_placement