Skip to content

Commit 5713497

Browse files
Matt Riedemannkk7ds
authored andcommitted
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
1 parent adcf0c5 commit 5713497

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tools/discover_hosts.sh

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

0 commit comments

Comments
 (0)