Merge "Run placement db online_data_migrations before starting placement-api"

This commit is contained in:
Zuul 2020-04-27 02:23:05 +00:00 committed by Gerrit Code Review
commit 80f64b92d3
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