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'] }} name: ceph-mds@{{ hostvars[item]['ansible_hostname'] }}
state: stopped state: stopped
enabled: no 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 masked: yes
delegate_to: "{{ item }}" delegate_to: "{{ item }}"
with_items: "{{ groups['standby_mdss'] }}" with_items: "{{ groups['standby_mdss'] }}"

View File

@ -39,4 +39,5 @@ openstack_pools:
- "{{ openstack_cinder_pool }}" - "{{ openstack_cinder_pool }}"
docker_pull_timeout: 600s docker_pull_timeout: 600s
handler_health_mon_check_delay: 10 handler_health_mon_check_delay: 10
handler_health_osd_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] [mdss]
mds0 mds0
mds1
mds2
[rgws] [rgws]
rgw0 rgw0

View File

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

View File

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

View File

@ -33,3 +33,4 @@ openstack_pools:
- "{{ openstack_cinder_pool }}" - "{{ openstack_cinder_pool }}"
handler_health_mon_check_delay: 10 handler_health_mon_check_delay: 10
handler_health_osd_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] [mdss]
mds0 mds0
mds1
mds2
[rgws] [rgws]
rgw0 rgw0

View File

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

View File

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

View File

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