From 2dd7718409fcb755381ad15e8fe6790a6d9c81ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Piotr=20Da=C5=82ek?= Date: Wed, 19 Apr 2017 12:57:38 +0200 Subject: [PATCH] test/osd/osd-dup.sh: warn on low open file limit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/osd/osd-dup.sh | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.47.3