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>
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)])