overcloud-deploy: add variable for hypervisor_wait

The overcloud-deploy.sh script first spins while waiting for hypervisor
resources to become available. In deployed-server environments this will
never be true, causing the job to spin indefinitely. This commit makes
this an optional component with a hypervisor_wait variable.

Change-Id: I9cc019185ccc6564aea3b5f46249c10ed8518dbb
This commit is contained in:
Ben Kero 2016-11-30 11:51:31 -08:00
parent 9c833fa675
commit 0988ac6663
2 changed files with 5 additions and 0 deletions

View File

@ -90,3 +90,6 @@ overcloud_templates_path: /usr/share/openstack-tripleo-heat-templates
# enable IPv6 on overcloud deployment
overcloud_ipv6: false
# Wait for hypervisor in the deployment script
hypervisor_wait: true

View File

@ -14,6 +14,7 @@ set -eux
source {{ working_dir }}/stackrc
{% if hypervisor_wait|bool %}
### --stop_docs
# Wait until there are hypervisors available.
while true; do
@ -22,6 +23,7 @@ while true; do
break
fi
done
{% endif %}
### --start_docs