From fdf201686e830e37653717e4e603826fb586a611 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 28 Feb 2022 09:51:36 +0100 Subject: [PATCH] purge: ceph-crash purge fixes 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 (cherry picked from commit 2f11982590e298e92f7d3c4a06026fb00bea40cd) --- infrastructure-playbooks/purge-cluster.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 0b3287bb08..2dbd71fbf4 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -686,9 +686,15 @@ 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