mirror of https://github.com/ceph/ceph-ansible.git
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
parent
bc3138eff4
commit
9bc7f8a7d7
|
@ -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'] }}"
|
||||||
|
|
|
@ -40,3 +40,4 @@ openstack_pools:
|
||||||
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
|
|
@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
|
||||||
|
|
||||||
[mdss]
|
[mdss]
|
||||||
mds0
|
mds0
|
||||||
|
mds1
|
||||||
|
mds2
|
||||||
|
|
||||||
[rgws]
|
[rgws]
|
||||||
rgw0
|
rgw0
|
||||||
|
|
|
@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
|
||||||
|
|
||||||
[mdss]
|
[mdss]
|
||||||
mds0
|
mds0
|
||||||
|
mds1
|
||||||
|
mds2
|
||||||
|
|
||||||
[rgws]
|
[rgws]
|
||||||
rgw0
|
rgw0
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
|
||||||
|
|
||||||
[mdss]
|
[mdss]
|
||||||
mds0
|
mds0
|
||||||
|
mds1
|
||||||
|
mds2
|
||||||
|
|
||||||
[rgws]
|
[rgws]
|
||||||
rgw0
|
rgw0
|
||||||
|
|
|
@ -14,6 +14,8 @@ osd0
|
||||||
|
|
||||||
[mdss]
|
[mdss]
|
||||||
mds0
|
mds0
|
||||||
|
mds1
|
||||||
|
mds2
|
||||||
|
|
||||||
[rgws]
|
[rgws]
|
||||||
rgw0
|
rgw0
|
||||||
|
|
|
@ -12,6 +12,8 @@ osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
|
||||||
|
|
||||||
[mdss]
|
[mdss]
|
||||||
mds0
|
mds0
|
||||||
|
mds1
|
||||||
|
mds2
|
||||||
|
|
||||||
[rgws]
|
[rgws]
|
||||||
rgw0
|
rgw0
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue