diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-07-26 00:05:54 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-07-27 09:32:35 -0500 |
commit | adb9288685ac205decce04a1d8eba4c9989bcc48 (patch) | |
tree | 454e694c473205c15b4477d8dafba1f005702a4c /ci/01-deploybundle.sh | |
parent | b4f5b3523fe5740fb384856180d3c43f4faedc7d (diff) |
adding script to enable juju on openstack.
Change-Id: If259c8ad3530cc8d67499d406bd96abdd98b46f0
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-x | ci/01-deploybundle.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh index 6e2005df..10be1697 100755 --- a/ci/01-deploybundle.sh +++ b/ci/01-deploybundle.sh @@ -80,6 +80,14 @@ echo "... Deployment Started ...." juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2"-nodes # seeing issue related to number of open files. -juju run --service nodes 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' +# juju run --service nodes 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' + +count=`juju status nodes --format=short | grep nodes | wc -l` + +c=0 +while [ $c -lt $count ]; do + juju ssh nodes/$c 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' + let c+=1 +done juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2" || true |