]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: identify invalid fs 24392/head
authorJos Collin <jcollin@redhat.com>
Wed, 3 Oct 2018 10:52:51 +0000 (16:22 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 9 Oct 2018 04:17:38 +0000 (09:47 +0530)
Identify invalid fs in 'fs status' output.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/pybind/mgr/status/module.py

index 888e6db58ec22f4c00c81ff245d653ee911cdf64..4959fe0574ef3fbc8647e37f8e15526820a41aec 100644 (file)
@@ -233,6 +233,9 @@ class Module(MgrModule):
             output += rank_table.get_string()
             output += "\n" + pools_table.get_string() + "\n"
 
+        if not output and fs_filter is not None:
+            return errno.EINVAL, "", "Invalid filesystem: " + fs_filter
+
         standby_table = PrettyTable(["Standby MDS"])
         for standby in fsmap['standbys']:
             metadata = self.get_metadata('mds', standby['name'])