Merge "Discover hosts while waiting for hypervisors to show up in devstack"

This commit is contained in:
Jenkins 2017-06-14 19:58:12 +00:00 committed by Gerrit Code Review
commit 6084277a51
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"