Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handlers: restart daemons only if docker is running #2214

Merged
merged 1 commit into from Nov 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions roles/ceph-defaults/handlers/main.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -128,6 +130,7 @@
# 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
Expand Down Expand Up @@ -168,6 +171,7 @@
# 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
Expand Down Expand Up @@ -208,6 +212,7 @@
# 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
Expand Down Expand Up @@ -248,6 +253,7 @@
# 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
Expand Down Expand Up @@ -288,6 +294,7 @@
# 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
Expand Down