summaryrefslogtreecommitdiffstats
path: root/ci/01-deploybundle.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-28 13:28:38 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-28 13:29:21 -0500
commitf0bb3fd8968dfbe8c887769d397058752a203431 (patch)
tree27ae4b7a3a314d6dd9c74192887130b6ff75cabd /ci/01-deploybundle.sh
parent12ebb176750bd938d145279981026d38bc46b2b2 (diff)
trying to resolv charm error by configure the cluster first then
other relationship. Change-Id: Id4d7ceae20554d9952c45266ba1f827e43faaef6 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-xci/01-deploybundle.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh
index 2d35d481..ef93aea2 100755
--- a/ci/01-deploybundle.sh
+++ b/ci/01-deploybundle.sh
@@ -27,6 +27,27 @@ case "$1" in
;;
esac
+#check whether charms are still executing the code even juju-deployer says installed.
+check_status() {
+ retval=0
+ timeoutiter=0
+ while [ $retval -eq 0 ]; do
+ sleep 30
+ juju status > status.txt
+ if [ "$(grep -c "executing" status.txt )" -ge 1 ]; then
+ echo " still executing the reltionship within charms ..."
+ if [ $timeoutiter -ge 90 ]; then
+ retval=1
+ fi
+ timeoutiter=$((timeoutiter+1))
+ else
+ retval=1
+ fi
+ done
+ status=`juju action do heat/0 domain-setup`
+ echo $status
+ echo "...... deployment finishing ......."
+}
#read the value from deployment.yaml
if [ -e ~/.juju/deployment.yaml ]; then
@@ -118,6 +139,7 @@ esac
echo "... Deployment Started ...."
juju-deployer -vW -d -t 3600 -c bundles.yaml $6-"$2"-nodes
+ check_status
juju ssh nodes/0 "echo 512 | sudo tee /proc/sys/fs/inotify/max_user_instances"