From 2b3bb30d9906f70894a1945956fb8216cd929ad0 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 23 Mar 2018 19:56:26 -0400 Subject: [PATCH] Only sync the local cell in superconductor mode When nova-manage db sync runs on cell1 in superconductor mode, the [api_database]/connection config option isn't set in the config file on purpose so the cell can't reach the API database. As a result, the db sync on the cell config can't hit the API DB to sync cell0, which is not something we need here anyway, but it results in an error message. This tells the cell config db sync to just run it on the cell database and not try to sync cell0. Change-Id: Iac092762decd6de9e90e264f2998d255e8e40d00 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 56e309333b..2c5307ccec 100644 --- a/lib/nova +++ b/lib/nova @@ -734,7 +734,7 @@ function init_nova { # (Re)create nova databases for i in $(seq 1 $NOVA_NUM_CELLS); do recreate_database nova_cell${i} - $NOVA_BIN_DIR/nova-manage --config-file $(conductor_conf $i) db sync + $NOVA_BIN_DIR/nova-manage --config-file $(conductor_conf $i) db sync --local_cell done # Migrate nova and nova_cell0 databases.