]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: set the failure domain to OSD by default
authorLoic Dachary <loic-201408@dachary.org>
Wed, 3 Sep 2014 12:18:48 +0000 (14:18 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 16 Sep 2014 08:28:44 +0000 (10:28 +0200)
So that tests do not need to do it to be able to use the default rbd
pool to store objects.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/test/mon/mon-test-helpers.sh
src/test/mon/osd-crush.sh

index 052b1ca3fbdbc74b2a617c557f2ad06c2d2d4f85..aa729b1426319cabb38ac40c874b4ff4826b1a3e 100644 (file)
@@ -42,6 +42,7 @@ function run_mon() {
     ./ceph-mon \
         --id $id \
         --paxos-propose-interval=0.1 \
+        --osd-crush-chooseleaf-type=0 \
         --osd-pool-default-erasure-code-directory=.libs \
         --debug-mon 20 \
         --debug-ms 20 \
index eaf7452d526d4e0b014bc0e0b9c9c592e3fe69a2..d8d67d9480e96374f33c57e822ada9291c440611 100755 (executable)
@@ -39,7 +39,7 @@ function TEST_crush_rule_create_simple() {
     local dir=$1
     ./ceph --format xml osd crush rule dump replicated_ruleset | \
         egrep '<op>take</op><item>[^<]+</item><item_name>default</item_name>' | \
-        grep '<op>chooseleaf_firstn</op><num>0</num><type>host</type>' || return 1
+        grep '<op>choose_firstn</op><num>0</num><type>osd</type>' || return 1
     local ruleset=ruleset0
     local root=host1
     ./ceph osd crush add-bucket $root host