From f24f5f3586d53c86cf3a0b8e6a652962d6473610 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Thu, 15 Jun 2023 11:38:44 +0200 Subject: [PATCH] mgr/dashboard: empty list of fs clients with no mds Signed-off-by: Pere Diaz Bou Fixes: https://tracker.ceph.com/issues/61708 --- src/pybind/mgr/dashboard/controllers/cephfs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index 7b7589d423ab..0c7b0470aee4 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -503,7 +503,11 @@ class CephFSClients(object): @ViewCache() def get(self): - return CephService.send_command('mds', 'session ls', srv_spec='{0}:0'.format(self.fscid)) + try: + ret = CephService.send_command('mds', 'session ls', srv_spec='{0}:0'.format(self.fscid)) + except RuntimeError: + ret = [] + return ret @UIRouter('/cephfs', Scope.CEPHFS) -- 2.47.3