From 0ffc5ee53c34aabbba016c6e1d6b7a91c3124ea1 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 3 Sep 2014 14:18:48 +0200 Subject: [PATCH] tests: set the failure domain to OSD by default 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 --- src/test/mon/mon-test-helpers.sh | 1 + src/test/mon/osd-crush.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/mon/mon-test-helpers.sh b/src/test/mon/mon-test-helpers.sh index 052b1ca3fbd..aa729b14263 100644 --- a/src/test/mon/mon-test-helpers.sh +++ b/src/test/mon/mon-test-helpers.sh @@ -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 \ diff --git a/src/test/mon/osd-crush.sh b/src/test/mon/osd-crush.sh index eaf7452d526..d8d67d9480e 100755 --- a/src/test/mon/osd-crush.sh +++ b/src/test/mon/osd-crush.sh @@ -39,7 +39,7 @@ function TEST_crush_rule_create_simple() { local dir=$1 ./ceph --format xml osd crush rule dump replicated_ruleset | \ egrep 'take[^<]+default' | \ - grep 'chooseleaf_firstn0host' || return 1 + grep 'choose_firstn0osd' || return 1 local ruleset=ruleset0 local root=host1 ./ceph osd crush add-bucket $root host -- 2.47.3