]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
handler: fix osd containers handler
authorGuillaume Abrioux <gabrioux@redhat.com>
Sat, 13 Oct 2018 08:42:18 +0000 (10:42 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 15 Oct 2018 08:30:40 +0000 (10:30 +0200)
`ceph_osd_container_stat` might not be set on other osd node.
We must ensure we are on the last node before trying to evaluate
`ceph_osd_container_stat`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-handler/handlers/main.yml

index bc6732eb0910f73e291e46f2737f816b1b7392ba..95132e6cb967c12f178f747e1cf0a798596c2e9d 100644 (file)
     - osd_group_name in group_names
     - containerized_deployment
     - not rolling_update
-    - ceph_osd_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(osd_group_name) | last
+    - ceph_osd_container_stat.get('rc') == 0
     - ceph_osd_container_stat.get('stdout_lines', [])|length != 0
     - handler_health_osd_check
     - hostvars[item]['_osd_handler_called'] | default(False)