From 27efcbc0e5d216a3a211b930497769ec06526369 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 9 Jul 2020 11:23:33 -0400 Subject: [PATCH] cephadm-adopt: don't fail on systemd reset-failed If the systemd service exists successfully then we don't need to reset the failed state. Signed-off-by: Dimitri Savineau --- infrastructure-playbooks/cephadm-adopt.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 983e5a94c..98a1867af 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -301,6 +301,7 @@ - name: reset failed ceph-mon systemd unit command: 'systemctl reset-failed ceph-mon@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mon systemd unit file @@ -334,6 +335,7 @@ - name: reset failed ceph-mgr systemd unit command: 'systemctl reset-failed ceph-mgr@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mgr systemd unit file @@ -454,6 +456,7 @@ - name: reset failed ceph-mds systemd unit command: 'systemctl reset-failed ceph-mds@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mds systemd unit file @@ -550,6 +553,7 @@ - name: reset failed ceph-radosgw systemd unit command: 'systemctl reset-failed ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}' changed_when: false + failed_when: false loop: '{{ rgw_instances }}' when: containerized_deployment | bool @@ -616,6 +620,7 @@ - name: reset failed rbd-mirror systemd unit command: 'systemctl reset-failed ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove rbd-mirror systemd unit file