]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: reset-failed on reconfig
authorSage Weil <sage@redhat.com>
Thu, 20 Feb 2020 22:08:00 +0000 (16:08 -0600)
committerSage Weil <sage@redhat.com>
Thu, 20 Feb 2020 22:11:26 +0000 (16:11 -0600)
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 <sage@redhat.com>
src/cephadm/cephadm

index 47628f2b83eda8926eaa15a05fb85c644591ca57..59c7df807ffbb5ec05229fbf593e8613c9174015 100755 (executable)
@@ -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)])