]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-defaults: fix handler for osd container 1784/head
authorSébastien Han <seb@redhat.com>
Tue, 22 Aug 2017 09:56:05 +0000 (11:56 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 22 Aug 2017 09:56:05 +0000 (11:56 +0200)
Problem: task "check for a ceph socket in containerized deployment" will
be skipped if we are not an OSD.

with_items are still evaluated before when conditions so if the task was
skipped the dict will be empty and then fail.
Adding a "not skipped" condition skips the execution of the task.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1482061
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-defaults/handlers/main.yml

index f661e3b1cd764a4ec285db219199dc1763753800..760c7f1da5ddf04897d7c531a8e863afaba1a0d7 100644 (file)
@@ -45,6 +45,7 @@
   # We do not want to run these checks on initial deployment (`socket_osd_container.results[n].rc == 0`)
   # except when a crush location is specified. ceph-disk will start the osds before the osd crush location is specified
     - containerized_deployment
+    - not item.get("skipped")
     - ((crush_location is defined and crush_location) or item.get('rc') == 0)
     - handler_health_osd_check
     # See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below