Skip to content

Commit

Permalink
Merge pull request ceph#1598 from ceph/wip-test-alloc-hint-ec-fix
Browse files Browse the repository at this point in the history
qa: test_alloc_hint: set ec ruleset-failure-domain to osd

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Apr 3, 2014
2 parents 9f41975 + d323634 commit 90c4540
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qa/workunits/rados/test_alloc_hint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 90c4540

Please sign in to comment.