From 8a19fbfbde37a0842f7c9b5491dfd64f920540ec Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 23 Oct 2019 10:47:58 -0500 Subject: [PATCH] ceph-daemon: fix crash unit cleanup Signed-off-by: Sage Weil --- src/ceph-daemon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index 6ea7d24d9c0db..35afdc448ab57 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -897,6 +897,7 @@ def command_bootstrap(): deploy_daemon(fsid, 'mgr', mgr_id, mgr_c, uid, gid, config, mgr_keyring) # crash unit + logger.info('Creating crash agent...') deploy_crash(fsid, uid, gid, config, '[client.crash.%s]\n\tkey = %s\n' % (hostname, crash_key)) @@ -1316,7 +1317,7 @@ def command_rm_cluster(): call_throws(['rm', '-f', args.unit_dir + '/ceph-%s@.service' % args.fsid]) call_throws(['rm', '-f', args.unit_dir + - '/ceph-%s-crash@.service' % args.fsid]) + '/ceph-%s-crash.service' % args.fsid]) call_throws(['rm', '-f', args.unit_dir + '/ceph-%s.target' % args.fsid]) call_throws(['rm', '-rf', -- 2.39.5