From: Loic Dachary Date: Sat, 18 Oct 2014 20:10:14 +0000 (-0700) Subject: tests: tolerate a disk 99% full X-Git-Tag: v0.89~46^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bdca0ac0b5fe45edbae5b6fbfbdc3f83a540a62a;p=ceph.git tests: tolerate a disk 99% full The tests do not need much space and will work fine even on a 99% full disk. Signed-off-by: Loic Dachary --- diff --git a/src/test/ceph-disk.sh b/src/test/ceph-disk.sh index 3ea3c4b54c0..081b1fb0562 100755 --- a/src/test/ceph-disk.sh +++ b/src/test/ceph-disk.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2014 Cloudwatt +# Copyright (C) 2014 Red Hat # # Author: Loic Dachary # @@ -30,6 +31,7 @@ export CEPH_CONF=/dev/null export CEPH_ARGS="--fsid $FSID" CEPH_ARGS+=" --chdir=" CEPH_ARGS+=" --run-dir=$DIR" +CEPH_ARGS+=" --osd-failsafe-full-ratio=.99" CEPH_ARGS+=" --mon-host=$MONA" CEPH_ARGS+=" --log-file=$DIR/\$name.log" CEPH_ARGS+=" --pid-file=$DIR/\$name.pidfile" @@ -74,6 +76,8 @@ function run_mon() { ./ceph-mon \ --id $MON_ID \ --mon-data=$mon_dir \ + --mon-osd-full-ratio=.99 \ + --mon-data-avail-crit=1 \ --mon-cluster-log-file=$mon_dir/log \ --public-addr $MONA \ "$@" diff --git a/src/test/erasure-code/test-erasure-code.sh b/src/test/erasure-code/test-erasure-code.sh index e7543199955..b8a10212192 100755 --- a/src/test/erasure-code/test-erasure-code.sh +++ b/src/test/erasure-code/test-erasure-code.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2014 Cloudwatt +# Copyright (C) 2014 Red Hat # # Author: Loic Dachary # diff --git a/src/test/mon/mkfs.sh b/src/test/mon/mkfs.sh index c86eaf4126a..fbf560be26f 100755 --- a/src/test/mon/mkfs.sh +++ b/src/test/mon/mkfs.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2013 Cloudwatt +# Copyright (C) 2014 Red Hat # # Author: Loic Dachary # @@ -54,6 +55,8 @@ function mon_run() { ./ceph-mon \ --id $MON_ID \ --chdir= \ + --mon-osd-full-ratio=.99 \ + --mon-data-avail-crit=1 \ --osd-pool-default-erasure-code-directory=.libs \ --mon-data=$MON_DIR \ --log-file=$MON_DIR/log \ @@ -79,6 +82,8 @@ function auth_none() { ./ceph-mon \ --id $MON_ID \ + --mon-osd-full-ratio=.99 \ + --mon-data-avail-crit=1 \ --osd-pool-default-erasure-code-directory=.libs \ --mon-data=$MON_DIR \ --extract-monmap $MON_DIR/monmap @@ -144,6 +149,8 @@ function makedir() { # fail if recursive directory creation is needed ./ceph-mon \ --id $MON_ID \ + --mon-osd-full-ratio=.99 \ + --mon-data-avail-crit=1 \ --osd-pool-default-erasure-code-directory=.libs \ --mkfs \ --mon-data=$toodeep 2>&1 | tee $DIR/makedir.log diff --git a/src/test/mon/mon-test-helpers.sh b/src/test/mon/mon-test-helpers.sh index 79de8deaba8..deeb9f38f86 100644 --- a/src/test/mon/mon-test-helpers.sh +++ b/src/test/mon/mon-test-helpers.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2013,2014 Cloudwatt +# Copyright (C) 2014 Red Hat # # Author: Loic Dachary # @@ -46,6 +47,8 @@ function run_mon() { ./ceph-mon \ --id $id \ + --mon-osd-full-ratio=.99 \ + --mon-data-avail-crit=1 \ --paxos-propose-interval=0.1 \ --osd-crush-chooseleaf-type=0 \ --osd-pool-default-erasure-code-directory=.libs \ diff --git a/src/test/osd/osd-test-helpers.sh b/src/test/osd/osd-test-helpers.sh index 28d8544b6cf..4b3a8b79541 100644 --- a/src/test/osd/osd-test-helpers.sh +++ b/src/test/osd/osd-test-helpers.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2014 Cloudwatt +# Copyright (C) 2014 Red Hat # # Author: Loic Dachary # @@ -35,6 +36,8 @@ function run_osd() { prepare $osd_data || return 1 local ceph_args="$CEPH_ARGS" + ceph_args+=" --osd-backfill-full-ratio=.99" + ceph_args+=" --osd-failsafe-full-ratio=.99" ceph_args+=" --osd-journal-size=100" ceph_args+=" --osd-data=$osd_data" ceph_args+=" --chdir=" diff --git a/src/vstart.sh b/src/vstart.sh index 82509c472e9..a062906feb7 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -338,6 +338,9 @@ if [ "$start_mon" -eq 1 ]; then osd pgp bits = 5 ; (invalid, but ceph should cope!) osd crush chooseleaf type = 0 osd pool default min size = 1 + osd failsafe full ratio = .99 + mon osd full ratio = .99 + mon data avail crit = 1 osd pool default erasure code directory = .libs osd pool default erasure code profile = plugin=jerasure technique=reed_sol_van k=2 m=1 ruleset-failure-domain=osd rgw frontends = fastcgi, civetweb port=$CEPH_RGW_PORT