Merge pull request #14637 from ovh/bp-test-osd-dup-warn-on-low-limit

test/osd/osd-dup.sh: warn on low open file limit

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-04-19 09:46:28 -05:00 committed by GitHub
commit 4d18f07b80

View File

@ -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)