]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: restart mds after the upgrade
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 29 Jul 2020 13:44:15 +0000 (09:44 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 29 Jul 2020 21:43:36 +0000 (17:43 -0400)
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>
(cherry picked from commit ec0a37a74ffbefcce42582c57c6726cc001f98ab)

infrastructure-playbooks/rolling_update.yml

index a4ccfdd6f0a6232716e01ccd29b526f5dc6e525e..de9cd637cdf6d684246553044e2e52e85f9dae88 100644 (file)
         name: ceph-mds@{{ ansible_hostname }}
         enabled: no
         masked: yes
+      when: not containerized_deployment | bool
 
     - import_role:
         name: ceph-handler
     - 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:
         name: ceph-mds@{{ ansible_hostname }}
         enabled: no
         masked: yes
+      when: not containerized_deployment | bool
 
     - import_role:
         name: ceph-handler