From: Erwan Velu Date: Wed, 13 Jun 2018 09:58:47 +0000 (+0200) Subject: qa/standalone/ceph-helpers.sh: Setup ulimit in setup() X-Git-Tag: v14.0.1~982^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57df91380b4d9bff028b316051dfa10c81807b0b;p=ceph.git qa/standalone/ceph-helpers.sh: Setup ulimit in setup() 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 --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index ef505873757b7..7d958a8329227 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -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() {