Make sure nova-compute is not configured with database access

Apparently we're inheriting some database config from the main file,
which should not be set for nova-compute. If we're properly in superconductor
mode where we have a dedicated config for compute, remove those lines
if present.

Closes-Bug: #1797413

Change-Id: I4820abe57a023050dd8d067c77e26028801ff288
(cherry picked from commit 7d0003ef7e)
This commit is contained in:
Dan Smith 2018-10-11 08:59:26 -07:00 committed by Matt Riedemann
parent fad20e605c
commit ffb6cf7b4a
1 changed files with 3 additions and 0 deletions

View File

@ -881,6 +881,9 @@ function start_nova_compute {
# RPC, we also disable track_instance_changes.
iniset $NOVA_CPU_CONF filter_scheduler track_instance_changes False
iniset_rpc_backend nova $NOVA_CPU_CONF DEFAULT "nova_cell${NOVA_CPU_CELL}"
# Make sure we nuke any database config
inidelete $NOVA_CPU_CONF database connection
inidelete $NOVA_CPU_CONF api_database connection
fi
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then