]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix crash unit cleanup
authorSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 15:47:58 +0000 (10:47 -0500)
committerSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 19:45:34 +0000 (14:45 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index 6ea7d24d9c0dbe5714e0c6dad308c5937c23c917..35afdc448ab571ecb5e709bc52061e0e0e4d0c5e 100755 (executable)
@@ -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',