modified to sleep for 30 second after destroy the environment. 01/26101/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 16 Dec 2016 10:51:15 +0000 (04:51 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 16 Dec 2016 13:03:16 +0000 (07:03 -0600)
Change-Id: Idff7db35a47a5673c54fd03ecc1a621210179d37
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/00-maasdeploy.sh
ci/01-bootstrap.sh
ci/clean.sh

index 527134d..556b65a 100755 (executable)
@@ -18,6 +18,10 @@ sudo apt-get install openssh-server bzr git maas-deployer juju juju-deployer \
              maas-cli python-pip python-psutil python-openstackclient \
              python-congressclient gsutil charm-tools pastebinit -y
 
+sudo apt-get purge juju -y
+wget https://launchpad.net/~juju/+archive/ubuntu/stable/+files/juju-core_1.25.5-0ubuntu1~14.04.2~juju1_amd64.deb
+sudo dpkg -i juju-core_1.25.5-0ubuntu1~14.04.2~juju1_amd64.deb
+
 #first parameter should be custom and second should be either
 # absolute location of file (including file name) or url of the
 # file to download.
index 4d265f3..b02b83d 100755 (executable)
@@ -7,7 +7,7 @@ set -ex
 jujuver=`juju --version`
 
 if [[ "$jujuver" < "2" ]]; then
-  juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.6
+  juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.5
   sleep 5
   #disable juju gui until xenial charms are in charm store.
   juju deploy cs:juju-gui-130 --to 0
index 9324a91..079828a 100755 (executable)
@@ -21,6 +21,7 @@ if [[ "$jujuver" > "2" ]]; then
     rm -rf precise
     rm -rf trusty
     rm -rf xenial
+    sleep 30
     sudo sysctl -w vm.drop_caches=3
 elif [ -d $HOME/.juju/environments ]; then
     echo " " > status.txt