]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
handlers: restart daemons only if docker is running 2217/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 27 Nov 2017 13:59:30 +0000 (14:59 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 28 Nov 2017 11:23:28 +0000 (12:23 +0100)
In case where docker CLI is available but docker is not running, we
don't want to trigger the restart of the daemons.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510555
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b26a840002c548dcbddf71a04229c16cff3699c6)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-defaults/handlers/main.yml

index 7a10889df5a190c4f8920699f25c0f8e7baceacf..6e1953193400426bc0c2356bd8cda44a036a4818 100644 (file)
@@ -38,6 +38,7 @@
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - mon_group_name in group_names
     - containerized_deployment
+    - ceph_mon_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(mon_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_mon_container_stat.get('stdout_lines', [])|length != 0
@@ -86,6 +87,7 @@
     # except when a crush location is specified. ceph-disk will start the osds before the osd crush location is specified
     - osd_group_name in group_names
     - containerized_deployment
+    - ceph_osd_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(osd_group_name) | last
     - ((crush_location is defined and crush_location) or ceph_osd_container_stat.get('stdout_lines', [])|length != 0)
     - handler_health_osd_check
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - mds_group_name in group_names
     - containerized_deployment
+    - ceph_mds_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(mds_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_mds_container_stat.get('stdout_lines', [])|length != 0
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - rgw_group_name in group_names
     - containerized_deployment
+    - ceph_rgw_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(rgw_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_rgw_container_stat.get('stdout_lines', [])|length != 0
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - nfs_group_name in group_names
     - containerized_deployment
+    - ceph_nfs_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(nfs_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_nfs_container_stat.get('stdout_lines', [])|length != 0
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - rbdmirror_group_name in group_names
     - containerized_deployment
+    - ceph_rbd_mirror_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(rbdmirror_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_rbd_mirror_container_stat.get('stdout_lines', [])|length != 0
     # We do not want to run these checks on initial deployment (`socket.rc == 0`)
     - mgr_group_name in group_names
     - containerized_deployment
+    - ceph_mgr_container_stat.get('rc') == 0
     - inventory_hostname == groups.get(mgr_group_name) | last
     - inventory_hostname in play_hosts
     - ceph_mgr_container_stat.get('stdout_lines', [])|length != 0