Browse code

don't setup cells if n-cpu isn't also running

create_cell requires n-api and at least one n-cpu up and running. If
we have a configuration where it is not guarunteed that there is an
n-cpu at the end of a devstack run we have to skip this step and make
the user run it manually later.

Change-Id: I2287ab29f3c1a7252271dcce81673ef365615296

Sean Dague authored on 2016/12/05 20:28:26
Showing 1 changed files
... ...
@@ -1386,7 +1386,15 @@ check_libs_from_git
1386 1386
 
1387 1387
 # Do this late because it requires compute hosts to have started
1388 1388
 if is_service_enabled n-api; then
1389
-    create_cell
1389
+    if is_service_enabled n-cpu; then
1390
+        create_cell
1391
+    else
1392
+        # Some CI systems like Hyper-V build the control plane on
1393
+        # Linux, and join in non Linux Computes after setup. This
1394
+        # allows them to delay the processing until after their whole
1395
+        # environment is up.
1396
+        echo_summary "SKIPPING Cell setup because n-cpu is not enabled. You will have to do this manually before you have a working environment."
1397
+    fi
1390 1398
 fi
1391 1399
 
1392 1400
 # Bash completion