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"