]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: ceph-crash purge fixes
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 28 Feb 2022 08:51:36 +0000 (09:51 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 4 Mar 2022 11:51:51 +0000 (12:51 +0100)
This fixes the service file removal and makes the playbook
call `systemctl reset-failed` on the service because in Ceph
Nautilus, ceph-crash doesn't handle `SIGTERM` signal.

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

infrastructure-playbooks/purge-cluster.yml

index 0b3287bb0827ef95e315a44ede3fbf29df941563..2dbd71fbf4e1a66a4132b9136c672b0429501bcc 100644 (file)
         enabled: no
       failed_when: false
 
+    - name: systemctl reset-failed ceph-crash@{{ 'ceph-crash@' + ansible_facts['hostname'] }}  # noqa 303
+      command: "systemctl reset-failed ceph-crash@{{ 'ceph-crash@' + ansible_facts['hostname'] }}"
+      changed_when: false
+      failed_when: false
+      when: containerized_deployment | bool
+
     - name: remove service file
       file:
-        name: "/etc/systemd/system/ceph-crash.service"
+        name: "/etc/systemd/system/ceph-crash{{ '@' if containerized_deployment | bool else '' }}.service"
         state: absent
       failed_when: false