From 5ef4bc56dd4c846188d0a5ae9e80171fdb6f65f4 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 26 Sep 2016 09:33:39 +0100 Subject: [PATCH] Allow users to change the default provisioning timeout value 900 seconds is enough for small images but the larger the image becomes the more time we need to add it to a host, so allow users to override the default value by using the PROVISION_WAIT_TIMEOUT variable. Change-Id: Ia5f35bdf61fa2c8ad348d2a3a7fe181dbe06b096 --- scripts/test-bifrost.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh index 7c752975a..d01a8f8ab 100755 --- a/scripts/test-bifrost.sh +++ b/scripts/test-bifrost.sh @@ -35,6 +35,7 @@ INVENTORY_DHCP_STATIC_IP=false DOWNLOAD_IPA=true CREATE_IPA_IMAGE=false WRITE_INTERFACES_FILE=true +PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-900} # NOTE(cinerama): We could remove this if we change the CI job to use # USE_DHCP, BUILD_IMAGE, etc. @@ -135,7 +136,8 @@ ${ANSIBLE} -vvvv \ -e inspect_nodes=${INSPECT_NODES} \ -e download_ipa=${DOWNLOAD_IPA} \ -e create_ipa_image=${CREATE_IPA_IMAGE} \ - -e write_interfaces_file=${WRITE_INTERFACES_FILE} + -e write_interfaces_file=${WRITE_INTERFACES_FILE} \ + -e wait_timeout=${PROVISION_WAIT_TIMEOUT} EXITCODE=$? if [ $EXITCODE != 0 ]; then