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>
./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 \
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