Browse code

Add discover_hosts.sh script

This adds a simple script to run the
'nova-manage cell_v2 discover_hosts'
command which will be used by
devstack-gate to discover the compute
hosts after devstack is fully setup.

This allows us to manage the branches
where this can run from devstack rather
than require branch logic in devstack-gate.

Change-Id: Icc595d60de373471aa7ee8fb9f3a81fc12d80438
Depends-On: I4823737246a8e9cc4eaebf67ff6bdba8bf42ab29

Matt Riedemann authored on 2017/01/20 23:01:49
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,18 @@
0
+#!/usr/bin/env bash
1
+
2
+# **discover_hosts.sh**
3
+
4
+# This is just a very simple script to run the
5
+# "nova-manage cell_v2 discover_hosts" command
6
+# which is needed to discover compute nodes and
7
+# register them with a parent cell in Nova.
8
+# This assumes that /etc/nova/nova.conf exists
9
+# and has the following entries filled in:
10
+#
11
+# [api_database]
12
+# connection = This is the URL to the nova_api database
13
+#
14
+# In other words this should be run on the primary
15
+# (API) node in a multi-node setup.
16
+
17
+nova-manage cell_v2 discover_hosts --verbose