diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-09-21 04:25:26 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-09-21 04:26:06 -0500 |
commit | 30f7cf181e9e3b275d9ce62c2f74e9ab443fe5af (patch) | |
tree | 5bf728d3c121c8ed3287d1f60d725af151c609b4 /ci/02-deploybundle.sh | |
parent | 459a7f181f9ebb54bae36ed8ff2f9ee9560969d3 (diff) |
fix the timing issue where download is slow.
Change-Id: Ia57f9bd4d76efbeb2dee35fc41e90001698c39ec
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/02-deploybundle.sh')
-rwxr-xr-x | ci/02-deploybundle.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/02-deploybundle.sh b/ci/02-deploybundle.sh index 396f5ea9..d10f3be6 100755 --- a/ci/02-deploybundle.sh +++ b/ci/02-deploybundle.sh @@ -26,6 +26,7 @@ fi #check whether charms are still executing the code even juju-deployer says installed. check_status() { waitstatus=$1 + waittime=$2 retval=0 timeoutiter=0 @@ -33,7 +34,7 @@ check_status() { while [ $retval -eq 0 ]; do if juju status | grep -q $waitstatus; then echo -n '.' - if [ $timeoutiter -ge 180 ]; then + if [ $timeoutiter -ge $waittime ]; then echo 'timed out' retval=1 else @@ -150,8 +151,8 @@ pastebinit bundles.yaml || true # with JUJU 2.0 bundles has to be deployed only once. juju deploy bundles.yaml --debug -sleep 120 -check_status allocating +sleep 720 +check_status allocating 220 # need to revisit later if not needed we will remove the below. openfile_fix() { |