mirror of https://github.com/ceph/ceph-ansible.git
rolling_update: restart mds after the upgrade
In addition ofpull/5614/head155e2a2
, 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> (cherry picked from commitec0a37a74f
)
parent
7a970ac028
commit
cbdff5f95b
|
@ -580,6 +580,7 @@
|
||||||
name: ceph-mds@{{ ansible_hostname }}
|
name: ceph-mds@{{ ansible_hostname }}
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
|
when: not containerized_deployment | bool
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-handler
|
name: ceph-handler
|
||||||
|
@ -594,6 +595,18 @@
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-mds
|
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
|
- name: upgrade standbys ceph mdss cluster
|
||||||
vars:
|
vars:
|
||||||
|
@ -613,6 +626,7 @@
|
||||||
name: ceph-mds@{{ ansible_hostname }}
|
name: ceph-mds@{{ ansible_hostname }}
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
|
when: not containerized_deployment | bool
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-handler
|
name: ceph-handler
|
||||||
|
|
Loading…
Reference in New Issue