Browse code

Start placement before services that might like to use it

Otherwise those services, notably n-cpu, will try to register
resource providers before placement is ready.

Change-Id: I89fd4fa42baf3d19ee209c59cd85b97adb97c58b
Closes-Bug: #1695634

Chris Dent authored on 2017/06/06 01:06:06
Showing 1 changed files
... ...
@@ -1300,6 +1300,13 @@ elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
1300 1300
     $NOVA_BIN_DIR/nova-manage --config-file $NM_CONF floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
1301 1301
 fi
1302 1302
 
1303
+# Start placement before any of the service that are likely to want
1304
+# to use it to manage resource providers.
1305
+if is_service_enabled placement; then
1306
+    echo_summary "Starting Placement"
1307
+    start_placement
1308
+fi
1309
+
1303 1310
 if is_service_enabled neutron; then
1304 1311
     start_neutron
1305 1312
 fi
... ...
@@ -1314,10 +1321,6 @@ if is_service_enabled nova; then
1314 1314
     start_nova
1315 1315
     create_flavors
1316 1316
 fi
1317
-if is_service_enabled placement; then
1318
-    echo_summary "Starting Placement"
1319
-    start_placement
1320
-fi
1321 1317
 if is_service_enabled cinder; then
1322 1318
     echo_summary "Starting Cinder"
1323 1319
     start_cinder