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/deploy.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/deploy.sh')
-rwxr-xr-x | ci/deploy.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index d4c30d9d..9277e857 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -272,6 +272,7 @@ deploy() { #check whether charms are still executing the code even juju-deployer says installed. check_status() { waitstatus=$1 + waittime=$2 retval=0 timeoutiter=0 @@ -279,7 +280,7 @@ check_status() { while [ $retval -eq 0 ]; do if juju status | grep -q $waitstatus; then echo_info "Still waiting for $waitstatus units" - if [ $timeoutiter -ge 180 ]; then + if [ $timeoutiter -ge $waittime ]; then echo_error 'Timed out' retval=1 else @@ -309,7 +310,7 @@ fi echo_info "Deployment started" deploy -check_status executing +check_status executing 180 echo_info "Deployment finished" juju status --format=tabular @@ -343,8 +344,8 @@ if ([ $opnfvmodel == "openstack" ]); then elif ([ $opnfvmodel == "kubernetes" ]); then #Workarounf for master chanrm as it takes 5 minutes to run properly - check_status waiting - check_status executing + check_status waiting 50 + check_status executing 50 echo_info "Configuring Kubernetes deployment" ./k8.sh |