]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: stop ceph-crash service before upgrading v4.0.49.2
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 26 Mar 2021 09:31:06 +0000 (10:31 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 29 Mar 2021 08:29:42 +0000 (10:29 +0200)
This adds the missing service stop task for ceph-crash upgrade workflow.

It should have been added through commit
`15872e3db1e342238636bc9c8e1aef6bd1d3dcd8` in stable-4.0 but at the time
we backported this patch ceph-crash wasn't implemented yet so the
ceph-crash related content in this patch was removed. Then, ceph-crash
has been implemented later so we are still missing this part of the patch in
stable-4.0.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1943471
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a8420d41c6bb8992e36d06ac46fae12f4cce6489)

infrastructure-playbooks/rolling_update.yml

index a739432dff188b390ecfa74751c8c1e84fa6bdc5..b51b312d387c224debf52c565c6643979c50ab16 100644 (file)
         tasks_from: container_binary.yml
     - import_role:
         name: ceph-handler
+
+    - import_role:
+        name: ceph-crash
+        tasks_from: systemd.yml
+
+    - name: stop the ceph-crash service
+      systemd:
+        name: "{{ 'ceph-crash@' + ansible_facts['hostname'] if containerized_deployment | bool else 'ceph-crash.service' }}"
+        state: stopped
+        enabled: no
+        masked: yes
+
     - import_role:
         name: ceph-crash