Browse code

Merge "Merge (don't overwrite) $NOVA_CPU_CONF"

Zuul authored on 2019/08/23 03:37:25
Showing 3 changed files
... ...
@@ -18,6 +18,7 @@ declare -r -g _DEVSTACK_FUNCTIONS=1
18 18
 FUNC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
19 19
 source ${FUNC_DIR}/functions-common
20 20
 source ${FUNC_DIR}/inc/ini-config
21
+source ${FUNC_DIR}/inc/meta-config
21 22
 source ${FUNC_DIR}/inc/python
22 23
 source ${FUNC_DIR}/inc/rootwrap
23 24
 
... ...
@@ -861,7 +861,10 @@ function start_nova_compute {
861 861
 
862 862
     local compute_cell_conf=$NOVA_CONF
863 863
 
864
+    # Bug #1802143: $NOVA_CPU_CONF is constructed by first copying $NOVA_CONF...
864 865
     cp $compute_cell_conf $NOVA_CPU_CONF
866
+    # ...and then adding/overriding anything explicitly set in $NOVA_CPU_CONF
867
+    merge_config_file $TOP_DIR/local.conf post-config '$NOVA_CPU_CONF'
865 868
 
866 869
     if [[ "${CELLSV2_SETUP}" == "singleconductor" ]]; then
867 870
         # NOTE(danms): Grenade doesn't setup multi-cell rabbit, so
... ...
@@ -167,9 +167,6 @@ LAST_SPINNER_PID=""
167 167
 # Import common functions
168 168
 source $TOP_DIR/functions
169 169
 
170
-# Import config functions
171
-source $TOP_DIR/inc/meta-config
172
-
173 170
 # Import 'public' stack.sh functions
174 171
 source $TOP_DIR/lib/stack
175 172