Discover computes after they are registered 65/58365/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 8 Jun 2018 11:25:31 +0000 (15:25 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 8 Jun 2018 12:00:10 +0000 (16:00 +0400)
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>
mcp/config/states/networks

index 222a072..e9a9f51 100755 (executable)
@@ -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