Browse code

Don't assume nova-manage is present

tools/discover_hosts.sh is run by devstack-gate, and breaks all dsvm job
that doesn't use nova.

nova-manage is perhaps not installed if nova services are not enabled.

This change checks the presence of nova-.

Change-Id: Ic555d241f98d0fa027897c69a7115d1be88f6c96

Mehdi Abaakouk authored on 2017/01/26 19:31:58
Showing 1 changed files
... ...
@@ -15,4 +15,6 @@
15 15
 # In other words this should be run on the primary
16 16
 # (API) node in a multi-node setup.
17 17
 
18
-nova-manage cell_v2 discover_hosts --verbose
18
+if [[ -x $(which nova-manage) ]]; then
19
+    nova-manage cell_v2 discover_hosts --verbose
20
+fi