tests: add multimds coverage

This commit makes the all_daemons scenario deploying 3 mds in order to
cover the multimds case.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 25b98b2ce3)
pull/4639/head
Guillaume Abrioux 2019-10-17 14:43:18 +02:00
parent bc3138eff4
commit 9bc7f8a7d7
10 changed files with 24 additions and 3 deletions

View File

@ -588,6 +588,15 @@
name: ceph-mds@{{ hostvars[item]['ansible_hostname'] }}
state: stopped
enabled: no
delegate_to: "{{ item }}"
with_items: "{{ groups['standby_mdss'] }}"
when: groups['standby_mdss'] | default([]) | length > 0
# dedicated task for masking systemd unit
# somehow, having a single task doesn't work in containerized context
- name: mask systemd units for standby ceph mds
systemd:
name: ceph-mds@{{ hostvars[item]['ansible_hostname'] }}
masked: yes
delegate_to: "{{ item }}"
with_items: "{{ groups['standby_mdss'] }}"

View File

@ -40,3 +40,4 @@ openstack_pools:
docker_pull_timeout: 600s
handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
mds_max_mds: 3

View File

@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
[mdss]
mds0
mds1
mds2
[rgws]
rgw0

View File

@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
[mdss]
mds0
mds1
mds2
[rgws]
rgw0

View File

@ -6,7 +6,7 @@ docker: True
# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 3
osd_vms: 2
mds_vms: 1
mds_vms: 3
rgw_vms: 1
nfs_vms: 1
grafana_server_vms: 0

View File

@ -33,3 +33,4 @@ openstack_pools:
- "{{ openstack_cinder_pool }}"
handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
mds_max_mds: 3

View File

@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
[mdss]
mds0
mds1
mds2
[rgws]
rgw0

View File

@ -14,6 +14,8 @@ osd0
[mdss]
mds0
mds1
mds2
[rgws]
rgw0

View File

@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
[mdss]
mds0
mds1
mds2
[rgws]
rgw0

View File

@ -6,7 +6,7 @@ docker: false
# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 3
osd_vms: 2
mds_vms: 1
mds_vms: 3
rgw_vms: 1
nfs_vms: 1
grafana_server_vms: 0