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:
parent
7116ec3b1a
commit
cc012730f7
@ -59,6 +59,9 @@ upgrade_project placement $RUN_DIR $BASE_DEVSTACK_BRANCH
|
|||||||
# Simulate init_placement()
|
# Simulate init_placement()
|
||||||
# Migrate the database
|
# Migrate the database
|
||||||
$PLACEMENT_BIN_DIR/placement-manage db sync || die $LINENO "DB sync error"
|
$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:
|
||||||
start_placement
|
start_placement
|
||||||
|
Loading…
x
Reference in New Issue
Block a user