rolling_update: restart mds after the upgrade

In addition of 155e2a2, the active mds daemons isn't stop/start
correctly as opposed as the other services so that daemon doesn't come
back after the upgrade.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1861688

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/5606/head
Dimitri Savineau 2020-07-29 09:44:15 -04:00 committed by Dimitri Savineau
parent 891234668e
commit ec0a37a74f
1 changed files with 14 additions and 0 deletions

View File

@ -563,6 +563,7 @@
name: ceph-mds@{{ ansible_hostname }}
enabled: no
masked: yes
when: not containerized_deployment | bool
- import_role:
name: ceph-handler
@ -577,6 +578,18 @@
- import_role:
name: ceph-mds
- name: restart ceph mds
systemd:
name: ceph-mds@{{ ansible_hostname }}
state: restarted
enabled: yes
masked: no
when: not containerized_deployment | bool
- name: restart active mds
command: "{{ container_binary }} stop ceph-mds-{{ ansible_hostname }}"
changed_when: false
when: containerized_deployment | bool
- name: upgrade standbys ceph mdss cluster
vars:
@ -596,6 +609,7 @@
name: ceph-mds@{{ ansible_hostname }}
enabled: no
masked: yes
when: not containerized_deployment | bool
- import_role:
name: ceph-handler