From e1a69393af42bbe9faf77e318e3cd6c84b264a1b Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Fri, 16 Dec 2016 04:51:15 -0600 Subject: [PATCH] modified to sleep for 30 second after destroy the environment. Change-Id: Idff7db35a47a5673c54fd03ecc1a621210179d37 Signed-off-by: Narinder Gupta --- ci/00-maasdeploy.sh | 4 ++++ ci/01-bootstrap.sh | 2 +- ci/clean.sh | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/00-maasdeploy.sh b/ci/00-maasdeploy.sh index 527134d0..556b65ab 100755 --- a/ci/00-maasdeploy.sh +++ b/ci/00-maasdeploy.sh @@ -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. diff --git a/ci/01-bootstrap.sh b/ci/01-bootstrap.sh index 4d265f32..b02b83d3 100755 --- a/ci/01-bootstrap.sh +++ b/ci/01-bootstrap.sh @@ -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 diff --git a/ci/clean.sh b/ci/clean.sh index 9324a91d..079828a0 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -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 -- 2.16.6