]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: don't fail on systemd reset-failed
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 9 Jul 2020 15:23:33 +0000 (11:23 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 10 Jul 2020 15:08:30 +0000 (11:08 -0400)
If the systemd service exists successfully then we don't need to reset
the failed state.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 27efcbc0e5d216a3a211b930497769ec06526369)

infrastructure-playbooks/cephadm-adopt.yml

index 983e5a94ce24995fa88251463cea47c3f18d4648..98a1867af8de2c268d4f2ee9503737d4c0dc3fd7 100644 (file)
     - 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
     - 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
     - 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
     - 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
 
     - 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