test: add tests for creating crush tree

We now run tests on the newly created ceph_crush module. Now the CI will
create a specific hierarchy for the OSD.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2436/head
Sébastien Han 2018-02-21 15:26:30 +01:00 committed by Guillaume Abrioux
parent 73c4846744
commit fc0fa48e0d
4 changed files with 22 additions and 2 deletions

View File

@ -2,3 +2,13 @@
cephfs_pools:
- { name: "{{ cephfs_data }}", pgs: "8" }
- { name: "{{ cephfs_metadata }}", pgs: "8" }
create_crush_tree: True
crush_rule_config: True
crush_rule_hdd:
name: HDD
root: HDD
type: host
default: true
crush_rules:
- "{{ crush_rule_hdd }}"

View File

@ -7,7 +7,7 @@ ceph-mon2 monitor_address=192.168.1.12
ceph-mgr0
[osds]
ceph-osd0
ceph-osd0 osd_crush_location="{ 'root': 'HDD', 'rack': 'mon-rackkkk', 'pod': 'monpod', 'host': 'ceph-osd0' }"
[mdss]
ceph-mds0

View File

@ -2,3 +2,13 @@
cephfs_pools:
- { name: "{{ cephfs_data }}", pgs: "8" }
- { name: "{{ cephfs_metadata }}", pgs: "8" }
create_crush_tree: True
crush_rule_config: True
crush_rule_hdd:
name: HDD
root: HDD
type: host
default: true
crush_rules:
- "{{ crush_rule_hdd }}"

View File

@ -7,7 +7,7 @@ mon2
mgr0
[osds]
osd0
osd0 osd_crush_location="{ 'root': 'HDD', 'rack': 'mon-rackkkk', 'pod': 'monpod', 'host': 'osd0' }"
[mdss]
mds0