]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: empty list of fs clients with no mds 52076/head
authorPere Diaz Bou <pere-altea@hotmail.com>
Thu, 15 Jun 2023 09:38:44 +0000 (11:38 +0200)
committerPere Diaz Bou <pere-altea@hotmail.com>
Fri, 16 Jun 2023 07:53:05 +0000 (09:53 +0200)
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
Fixes: https://tracker.ceph.com/issues/61708
src/pybind/mgr/dashboard/controllers/cephfs.py

index 7b7589d423abde88a2cc313956ddab98891470b2..0c7b0470aee4b28e3709b878239ce5ff5bbf742f 100644 (file)
@@ -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)