~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/01-deploybundle.sh

  • Committer: Narinder Gupta
  • Date: 2016-07-27 14:32:35 UTC
  • Revision ID: git-v1:adb9288685ac205decce04a1d8eba4c9989bcc48
adding script to enable juju on openstack.

Change-Id: If259c8ad3530cc8d67499d406bd96abdd98b46f0
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2"-nodes
81
81
 
82
82
# seeing issue related to number of open files.
83
 
juju run --service nodes 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances'
 
83
# juju run --service nodes 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances'
 
84
 
 
85
count=`juju status nodes --format=short | grep nodes | wc -l`
 
86
 
 
87
c=0
 
88
while [ $c -lt $count ]; do
 
89
    juju ssh nodes/$c 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances'
 
90
    let c+=1
 
91
done
84
92
 
85
93
juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2" || true