From cc012730f77f7c0d1bb5fa0480ed7665cd26e981 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Thu, 17 Jan 2019 15:01:42 -0500 Subject: [PATCH] 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 --- projects/15_placement/upgrade.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/15_placement/upgrade.sh b/projects/15_placement/upgrade.sh index f87926c2..49c41732 100755 --- a/projects/15_placement/upgrade.sh +++ b/projects/15_placement/upgrade.sh @@ -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