From: Pere Diaz Bou Date: Thu, 15 Jun 2023 09:38:44 +0000 (+0200) Subject: mgr/dashboard: empty list of fs clients with no mds X-Git-Tag: v19.0.0~1008^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52076%2Fhead;p=ceph.git mgr/dashboard: empty list of fs clients with no mds Signed-off-by: Pere Diaz Bou Fixes: https://tracker.ceph.com/issues/61708 --- 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)