From e71555a0dff7e112fe4e95b2919bf757d8a92f44 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 13 Jun 2017 07:51:03 -0700 Subject: [PATCH] Discover hosts while waiting for hypervisors to show up in devstack This will help us notice new compute nodes that may have gotten added while we're polling. Change-Id: I05502c4f861df48ae9ddaf36ddd37e1f70583db4 --- devstack/lib/ironic | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 5b9167ec6d..7c3072a0e1 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -1542,6 +1542,9 @@ function wait_for_nova_resources { if [ $(openstack hypervisor stats show -f value -c $resource) -ge $expected_count ]; then return 0 fi + if is_service_enabled n-api; then + $TOP_DIR/tools/discover_hosts.sh + fi sleep 1 done die $LINENO "Timed out waiting for Nova hypervisor-stats $resource >= $expected_count"