]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/osd-dup.sh: warn on low open file limit 14637/head
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 19 Apr 2017 10:57:38 +0000 (12:57 +0200)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 19 Apr 2017 10:57:38 +0000 (12:57 +0200)
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 <piotr.dalek@corp.ovh.com>
src/test/osd/osd-dup.sh

index d0961143941d97707255d9ab832a2465ec2a9b6c..264d27ddfdb072d4f5f1e2c67d39f031fc956e3b 100755 (executable)
@@ -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)