]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: force rgw .asok file removal after rgw stoppage 48306/head
authorAli Maredia <amaredia@redhat.com>
Thu, 29 Sep 2022 21:07:54 +0000 (17:07 -0400)
committerAli Maredia <amaredia@redhat.com>
Thu, 6 Oct 2022 20:32:15 +0000 (16:32 -0400)
Co-authored-by: Redouane Kachach <rkachach@redhat.com>
Signed-off-by: Ali Maredia <amaredia@redhat.com>
src/cephadm/cephadm.py

index d8a353fc0eacab0b7b3fb33edccbd031d288c1a3..2875e94e80fd04d174b60c7ded3b3f0eed8baea3 100755 (executable)
@@ -7109,6 +7109,13 @@ def command_rm_daemon(ctx):
          verbosity=CallVerbosity.DEBUG)
     call(ctx, ['systemctl', 'disable', unit_name],
          verbosity=CallVerbosity.DEBUG)
+
+    # force remove rgw admin socket file if leftover
+    if daemon_type in ['rgw']:
+        rgw_asok_path = f'/var/run/ceph/{ctx.fsid}/ceph-client.{ctx.name}.*.asok'
+        call(ctx, ['rm', '-rf', rgw_asok_path],
+             verbosity=CallVerbosity.DEBUG)
+
     data_dir = get_data_dir(ctx.fsid, ctx.data_dir, daemon_type, daemon_id)
     if daemon_type in ['mon', 'osd', 'prometheus'] and \
        not ctx.force_delete_data: