]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/erasure-code/test-erasure-code: adjust test to avoid m=0 26894/head
authorSage Weil <sage@redhat.com>
Wed, 13 Mar 2019 17:46:50 +0000 (12:46 -0500)
committerSage Weil <sage@redhat.com>
Wed, 13 Mar 2019 17:46:50 +0000 (12:46 -0500)
_DD is k=2 m=0, which we don't allow.  Switch it to cDD.

I confess I don't fully understand why this was _DD to begin with, but
I'm pretty sure mapping is there to control the order of results so that
it can be mapped to the CRUSH rule output sanely, and the coding portion
is not relevant to the test.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/erasure-code/test-erasure-code.sh

index ecdc25421ca7e4c969e2aee837aa9d39b01c276a..fb522bbd5b7c13f8393a3f205ee617323fe45bd2 100755 (executable)
@@ -308,7 +308,7 @@ function TEST_chunk_mapping() {
 
     ceph osd erasure-code-profile set remap-profile \
         plugin=lrc \
-        layers='[ [ "_DD", "" ] ]' \
+        layers='[ [ "cDD", "" ] ]' \
         mapping='_DD' \
         crush-steps='[ [ "choose", "osd", 0 ] ]' || return 1
     ceph osd erasure-code-profile get remap-profile