From d32363402493b963a78487ce458c59885f96ebe3 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 3 Apr 2014 21:03:53 +0400 Subject: [PATCH] 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 --- qa/workunits/rados/test_alloc_hint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qa/workunits/rados/test_alloc_hint.sh b/qa/workunits/rados/test_alloc_hint.sh index 45208be7f3c1e..86d3986659eb9 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}" -- 2.47.3