Skip to content

Commit 2b3bb30

Browse files
committed
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
1 parent 236250f commit 2b3bb30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/nova

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ function init_nova {
734734
# (Re)create nova databases
735735
for i in $(seq 1 $NOVA_NUM_CELLS); do
736736
recreate_database nova_cell${i}
737-
$NOVA_BIN_DIR/nova-manage --config-file $(conductor_conf $i) db sync
737+
$NOVA_BIN_DIR/nova-manage --config-file $(conductor_conf $i) db sync --local_cell
738738
done
739739

740740
# Migrate nova and nova_cell0 databases.

0 commit comments

Comments
 (0)