From e52b8dc4e87ab17bd454cffcc5ca837e353507a3 Mon Sep 17 00:00:00 2001 From: Suyash Dongre Date: Tue, 28 Nov 2023 01:01:06 +0530 Subject: [PATCH] src/cephadm: Added rgw for listing in Daemons Fixes: https://tracker.ceph.com/issues/46991 Signed-off-by: Suyash Dongre --- src/cephadm/cephadm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 348f581f9e6..1b8ff8dded0 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -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: -- 2.47.3