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
This commit is contained in:
Dan Smith 2017-06-13 07:51:03 -07:00
parent 870d909cc7
commit e71555a0df
1 changed files with 3 additions and 0 deletions

View File

@ -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"