]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/cephadm: Added rgw for listing in Daemons 54679/head
authorSuyash Dongre <suyashd999@gmail.com>
Mon, 27 Nov 2023 19:31:06 +0000 (01:01 +0530)
committerSuyash Dongre <suyashd999@gmail.com>
Mon, 27 Nov 2023 19:31:06 +0000 (01:01 +0530)
Fixes: https://tracker.ceph.com/issues/46991
Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
src/cephadm/cephadm.py

index 348f581f9e6167fabba19929a4310a9d9934439f..1b8ff8dded0a2d2f9acbb58a8c9b89eece935452 100755 (executable)
@@ -3949,7 +3949,7 @@ class CephadmAgent(DaemonForm):
         )
         name_id_mapping: Dict[str, str] = self._parse_container_id_name(code, out)
         for i in os.listdir(data_dir):
-            if i in ['mon', 'osd', 'mds', 'mgr']:
+            if i in ['mon', 'osd', 'mds', 'mgr', 'rgw']:
                 daemon_type = i
                 for j in os.listdir(os.path.join(data_dir, i)):
                     if '-' not in j:
@@ -5813,7 +5813,7 @@ def list_daemons(ctx, detail=True, legacy_dir=None):
     # /var/lib/ceph
     if os.path.exists(data_dir):
         for i in os.listdir(data_dir):
-            if i in ['mon', 'osd', 'mds', 'mgr']:
+            if i in ['mon', 'osd', 'mds', 'mgr', 'rgw']:
                 daemon_type = i
                 for j in os.listdir(os.path.join(data_dir, i)):
                     if '-' not in j: