From: Sage Weil Date: Tue, 22 Oct 2019 18:41:28 +0000 (-0500) Subject: ceph-daemon: make rm-cluster clear out previously failed units X-Git-Tag: v15.1.0~1197^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f48e24de6de42defab72ef494058ac560c510a65;p=ceph-ci.git ceph-daemon: make rm-cluster clear out previously failed units Signed-off-by: Sage Weil --- diff --git a/src/ceph-daemon b/src/ceph-daemon index fceaac43815..b7b25edc149 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -1289,6 +1289,8 @@ def command_rm_cluster(): 'ceph-%s-crash.service' % args.fsid]: call(['systemctl', 'stop', unit_name], 'systemctl', verbose_on_failure=False) + call(['systemctl', 'reset-failed', unit_name], 'systemctl', + verbose_on_failure=False) call(['systemctl', 'disable', unit_name], 'systemctl', verbose_on_failure=False)