reset failed count of ceph-mgr

Depending on your setup, ceph-mgr might get restarted multiple times.
When this is done to fast, systemd will prevent further restarts because of
configured limits in the ceph-mgr systemd unit file.

Resetting the failure count will prevent this problem. The reset is done before
the restart so in case of a real problem during the restart it still fails.

Fixes: #2768

Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>
pull/2767/merge
Christian Zunker 2018-06-20 07:01:06 +02:00 committed by Guillaume Abrioux
parent 68eb850b27
commit 48394597c9
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ SOCKET=/var/run/ceph/{{ cluster }}-mgr.${MGR_NAME}.asok
DOCKER_EXEC="docker exec ceph-mgr-{{ ansible_hostname }}"
{% endif %}
systemctl reset-failed ceph-mgr@${MGR_NAME}
# First, restart the daemon
systemctl restart ceph-mgr@${MGR_NAME}