]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: delete /tmp/cephadm-<fsid> when removing the cluster 51701/head
authorRedouane Kachach <rkachach@redhat.com>
Tue, 23 May 2023 10:14:20 +0000 (12:14 +0200)
committerRedouane Kachach <rkachach@redhat.com>
Tue, 23 May 2023 10:14:20 +0000 (12:14 +0200)
Fixes: https://tracker.ceph.com/issues/61361
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
src/cephadm/cephadm.py

index 672c1701155ead2153a295e1cb3f733648a83ee2..a676480d5030d8e1bee133b5f36eb58ce5e1cdc4 100755 (executable)
@@ -7543,7 +7543,7 @@ def command_rm_cluster(ctx):
             p.unlink()
 
     # cleanup remaining ceph directories
-    ceph_dirs = [f'/run/ceph/{ctx.fsid}', f'/tmp/var/lib/ceph/{ctx.fsid}', f'/var/run/ceph/{ctx.fsid}']
+    ceph_dirs = [f'/run/ceph/{ctx.fsid}', f'/tmp/cephadm-{ctx.fsid}', f'/var/run/ceph/{ctx.fsid}']
     for dd in ceph_dirs:
         shutil.rmtree(dd, ignore_errors=True)