From b4f5b3523fe5740fb384856180d3c43f4faedc7d Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Mon, 25 Jul 2016 14:14:28 -0500 Subject: [PATCH] modified to increase the number of user instance to open. Change-Id: Ic76ce031c8641028edb7fc530b985a3df401ded5 Signed-off-by: Narinder Gupta --- ci/01-deploybundle.sh | 6 ++++-- ci/deploy.sh | 8 -------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh index 5962d2d3..6e2005df 100755 --- a/ci/01-deploybundle.sh +++ b/ci/01-deploybundle.sh @@ -78,6 +78,8 @@ python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml echo "... Deployment Started ...." juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2"-nodes -#juju ssh nodes/0 "echo 512 | sudo tee /proc/sys/fs/inotify/max_user_instances" -#juju ssh nodes/1 "echo 512 | sudo tee /proc/sys/fs/inotify/max_user_instances" + +# seeing issue related to number of open files. +juju run --service nodes 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' + juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2" || true diff --git a/ci/deploy.sh b/ci/deploy.sh index 656ac4ed..4d5f61e5 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -152,14 +152,6 @@ check_status() { echo "...... deployment started ......" deploy -#temporary change the user instances as dhcp failed with limitation exceeded. -# to be remove once charm fixes the issue - -#if [ "$opnfvdistro" == "xenial" ]; then -# juju ssh neutron-gateway/0 "echo 512 | sudo tee /proc/sys/fs/inotify/max_user_instances" -#fi -# Temorary change end - check_status echo "...... deployment finished ......." -- 2.16.6