diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-09-20 07:41:18 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-09-20 07:41:18 -0500 |
commit | 16c95e3ff61446c5cac0e1e683f8c3c72e0ad553 (patch) | |
tree | 0b4385e0f52f4f1fdc08d569434f2344ef13dea0 /ci/02-deploybundle.sh | |
parent | 533dfeac9078ec05bc1c755078b4da74e8c5266d (diff) |
modfiied to adjust timings as it seems download the container
image is slow like few kbps.
Change-Id: I9bb8e0efea0fc23b76d24145b1e3b4f545473da1
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() { |