]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/ceph-helpers.sh: Setup ulimit in setup() 22441/head
authorErwan Velu <erwan@redhat.com>
Wed, 13 Jun 2018 09:58:47 +0000 (11:58 +0200)
committerErwan Velu <erwan@redhat.com>
Mon, 25 Jun 2018 20:09:14 +0000 (22:09 +0200)
If ulimit is set to a 1024 value, ceph-osd will segfault with the
following error :
    filestore(td/smoke/0)  error (24) Too many open files not handled on operation 0x55565d1fd004 (2182.1.0, or op 0, counting from 0)

This patch is about to insure that before setting up ceph daemons in tests, a valid ulimit value is setup.

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/standalone/ceph-helpers.sh

index ef505873757b7dc8fcbbfa7b48fbc556adf4149b..7d958a83292274cc9543cc0f30401bc75ec918ff 100755 (executable)
@@ -122,6 +122,9 @@ function setup() {
     teardown $dir || return 1
     mkdir -p $dir
     mkdir -p $(get_asok_dir)
+    if [ $(ulimit -n) -le 1024 ]; then
+        ulimit -n 4096 || return 1
+    fi
 }
 
 function test_setup() {