From: Piotr Dałek Date: Wed, 19 Apr 2017 10:57:38 +0000 (+0200) Subject: test/osd/osd-dup.sh: warn on low open file limit X-Git-Tag: v12.0.2~17^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14637%2Fhead;p=ceph.git test/osd/osd-dup.sh: warn on low open file limit This test fails badly when open file limit is low. Increasing to around 1536 seems to be doing the trick, so warn the user with appropriate message and try to proceed anyway. Signed-off-by: Piotr Dałek --- diff --git a/src/test/osd/osd-dup.sh b/src/test/osd/osd-dup.sh index d0961143941d..264d27ddfdb0 100755 --- a/src/test/osd/osd-dup.sh +++ b/src/test/osd/osd-dup.sh @@ -23,6 +23,11 @@ function run() { function TEST_filestore_to_bluestore() { local dir=$1 + local flimit=$(ulimit -n) + if [ $flimit -lt 1536 ]; then + echo "Low open file limit ($flimit), test may fail. Increase to 1536 or higher and retry if that happens." + fi + run_mon $dir a || return 1 run_osd $dir 0 || return 1 osd_pid=$(cat $dir/osd.0.pid)