summaryrefslogtreecommitdiffstats
path: root/mcp/config/states/networks
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-06-08 15:25:31 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2018-06-08 16:00:10 +0400
commit91fd8f2dd7a2d8642581785772bd30cc0d52e3b2 (patch)
tree95ee29c5864021da8e320e9b556e8da394874282 /mcp/config/states/networks
parentbf341b7e0d7e423044827f379e4b180e9dc897a1 (diff)
Discover computes after they are registered
The "nova hypervisor-list" won't work (i.e. will result in an empty list) until discover_hosts is launched with compute nodes on board. Change-Id: I942c69645731b59a5cb9e5cf39a89b84def96b12 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/config/states/networks')
-rwxr-xr-xmcp/config/states/networks3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcp/config/states/networks b/mcp/config/states/networks
index 222a0726d..e9a9f5190 100755
--- a/mcp/config/states/networks
+++ b/mcp/config/states/networks
@@ -35,3 +35,6 @@ salt -C 'I@nova:controller and *01*' cmd.run ". /root/keystonercv3; \
openstack subnet create --gateway ${PUBLIC_NET_GATEWAY} --no-dhcp \
--allocation-pool start=${POOL_START_IP},end=${POOL_END_IP} \
--network floating_net --subnet-range ${PUBLIC_NET} floating_subnet"
+
+# Discover compute hosts after they are registered
+salt -C 'I@nova:controller and *01*' state.sls_id nova_controller_discover_hosts nova