Skip to content

Commit

Permalink
purge: ceph-crash purge fixes
Browse files Browse the repository at this point in the history
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 2f11982)
  • Loading branch information
guits committed Mar 4, 2022
1 parent b970ab6 commit 6713c90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion infrastructure-playbooks/purge-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6713c90

Please sign in to comment.