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:
parent
870d909cc7
commit
e71555a0df
|
@ -1542,6 +1542,9 @@ function wait_for_nova_resources {
|
||||||
if [ $(openstack hypervisor stats show -f value -c $resource) -ge $expected_count ]; then
|
if [ $(openstack hypervisor stats show -f value -c $resource) -ge $expected_count ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
if is_service_enabled n-api; then
|
||||||
|
$TOP_DIR/tools/discover_hosts.sh
|
||||||
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
die $LINENO "Timed out waiting for Nova hypervisor-stats $resource >= $expected_count"
|
die $LINENO "Timed out waiting for Nova hypervisor-stats $resource >= $expected_count"
|
||||||
|
|
Loading…
Reference in New Issue