Browse code

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

Dan Smith authored on 2018/10/12 00:59:26
Showing 1 changed files
... ...
@@ -922,6 +922,9 @@ function start_nova_compute {
922 922
         # RPC, we also disable track_instance_changes.
923 923
         iniset $NOVA_CPU_CONF filter_scheduler track_instance_changes False
924 924
         iniset_rpc_backend nova $NOVA_CPU_CONF DEFAULT "nova_cell${NOVA_CPU_CELL}"
925
+        # Make sure we nuke any database config
926
+        inidelete $NOVA_CPU_CONF database connection
927
+        inidelete $NOVA_CPU_CONF api_database connection
925 928
     fi
926 929
 
927 930
     # Console proxies were configured earlier in create_nova_conf. Now that the