From: Loic Dachary Date: Thu, 28 May 2015 20:46:06 +0000 (+0200) Subject: tests: add lrc tests to osd-scrub-repair.sh X-Git-Tag: v9.0.2~83^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ddcbb66d4dad58f5b269b98145ec3d7630a8fc1a;p=ceph.git tests: add lrc tests to osd-scrub-repair.sh Create an lrc erasure coded pool and run corruption and repair tests on it. http://tracker.ceph.com/issues/11665 Fixes: #11665 Signed-off-by: Loic Dachary --- diff --git a/src/test/osd/osd-scrub-repair.sh b/src/test/osd/osd-scrub-repair.sh index 6ebbc35485f3..d5432c2bf0da 100755 --- a/src/test/osd/osd-scrub-repair.sh +++ b/src/test/osd/osd-scrub-repair.sh @@ -164,6 +164,25 @@ function TEST_corrupt_and_repair_jerasure() { teardown $dir || return 1 } +function TEST_corrupt_and_repair_lrc() { + local dir=$1 + local poolname=ecpool + local profile=myprofile + + setup $dir || return 1 + run_mon $dir a || return 1 + for id in $(seq 0 9) ; do + run_osd $dir $id || return 1 + done + wait_for_clean || return 1 + + ceph osd erasure-code-profile set $profile \ + pluing=lrc \ + k=4 m=2 l=3 \ + ruleset-failure-domain=osd || return 1 + + corrupt_and_repair_erasure_coded $dir $poolname $profile || return 1 + teardown $dir || return 1 }