mirror of https://github.com/ceph/ceph-ansible.git
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 <gabrioux@redhat.com>
(cherry picked from commit 2f11982590
)
pull/7112/head
parent
bcab0d7a55
commit
c618712f14
|
@ -686,9 +686,15 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
failed_when: false
|
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
|
- name: remove service file
|
||||||
file:
|
file:
|
||||||
name: "/etc/systemd/system/ceph-crash.service"
|
name: "/etc/systemd/system/ceph-crash{{ '@' if containerized_deployment | bool else '' }}.service"
|
||||||
state: absent
|
state: absent
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue