From: Ilya Dryomov Date: Thu, 3 Apr 2014 17:03:53 +0000 (+0400) Subject: qa: test_alloc_hint: set ec ruleset-failure-domain to osd X-Git-Tag: v0.79~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1598%2Fhead;p=ceph.git qa: test_alloc_hint: set ec ruleset-failure-domain to osd Create a custom profile with ruleset-failure-domain=osd. (The default ruleset-failure-domain=host won't do because this script assumes and works only if all osds are on the same host.) While at it, set k and m explicitly to avoid troubles in the future. Signed-off-by: Ilya Dryomov --- diff --git a/qa/workunits/rados/test_alloc_hint.sh b/qa/workunits/rados/test_alloc_hint.sh index 45208be7f3c1..86d3986659eb 100755 --- a/qa/workunits/rados/test_alloc_hint.sh +++ b/qa/workunits/rados/test_alloc_hint.sh @@ -108,7 +108,7 @@ setup_osd_data POOL="alloc_hint-rep" ceph osd pool create "${POOL}" "${NUM_PG}" -ceph osd pool set "${POOL}" size "${NUM_OSDS}" # just in case +ceph osd pool set "${POOL}" size "${NUM_OSDS}" OBJ="foo" setup_pgid "${POOL}" "${OBJ}" @@ -151,10 +151,11 @@ ceph osd pool delete "${POOL}" "${POOL}" --yes-i-really-really-mean-it # ECBackend tests # +PROFILE="alloc_hint-ecprofile" POOL="alloc_hint-ec" -RULE="ecruleset" -ceph osd crush rule create-erasure "${RULE}" default -ceph osd pool create "${POOL}" "${NUM_PG}" "${NUM_PGP}" erasure default "${RULE}" +ceph osd erasure-code-profile set "${PROFILE}" k=2 m=1 ruleset-failure-domain=osd +ceph osd erasure-code-profile get "${PROFILE}" # just so it's logged +ceph osd pool create "${POOL}" "${NUM_PG}" "${NUM_PGP}" erasure "${PROFILE}" OBJ="baz" setup_pgid "${POOL}" "${OBJ}"