From 328e430329e61943892aacf8fe93ecfbc09454fa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 20 Feb 2020 16:08:00 -0600 Subject: [PATCH] cephadm: reset-failed on reconfig Sometimes we had a bad config that reconfig will fix, so we need to reset-failed before restart. If there was not failure this is harmless. Signed-off-by: Sage Weil --- src/cephadm/cephadm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 47628f2b83e..59c7df807ff 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1259,6 +1259,8 @@ def deploy_daemon(fsid, daemon_type, daemon_id, c, uid, gid, if reconfig and daemon_type not in Ceph.daemons: # ceph daemons do not need a restart; others (presumably) do to pick # up the new config + call_throws(['systemctl', 'reset-failed', + get_unit_name(fsid, daemon_type, daemon_id)]) call_throws(['systemctl', 'restart', get_unit_name(fsid, daemon_type, daemon_id)]) -- 2.39.5