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
... | ... |
@@ -734,7 +734,7 @@ function init_nova { |
734 | 734 |
# (Re)create nova databases |
735 | 735 |
for i in $(seq 1 $NOVA_NUM_CELLS); do |
736 | 736 |
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 |
|
738 | 738 |
done |
739 | 739 |
|
740 | 740 |
# Migrate nova and nova_cell0 databases. |