]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: 'osd status' command return add state 19084/head
authorYanhu Cao <gmayyyha@gmail.com>
Fri, 27 Oct 2017 05:28:03 +0000 (13:28 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Tue, 21 Nov 2017 22:05:07 +0000 (17:05 -0500)
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
(cherry picked from commit f3475c9fdf5b32443df01c1a735c7289066c7508)

src/pybind/mgr/status/module.py

index 70a7e36e6b0702b406d71b30ae21dbf1f1e04434..51756257025634448092e6ecd08d823a51b7d853 100644 (file)
@@ -252,7 +252,7 @@ class Module(MgrModule):
         return 0, "", output
 
     def handle_osd_status(self, cmd):
-        osd_table = PrettyTable(['id', 'host', 'used', 'avail', 'wr ops', 'wr data', 'rd ops', 'rd data'])
+        osd_table = PrettyTable(['id', 'host', 'used', 'avail', 'wr ops', 'wr data', 'rd ops', 'rd data', 'state'])
         osdmap = self.get("osd_map")
 
         filter_osds = set()
@@ -298,6 +298,7 @@ class Module(MgrModule):
                                self.format_bytes(self.get_rate("osd", osd_id.__str__(), "osd.op_in_bytes"), 5),
                                self.format_dimless(self.get_rate("osd", osd_id.__str__(), "osd.op_r"), 5),
                                self.format_bytes(self.get_rate("osd", osd_id.__str__(), "osd.op_out_bytes"), 5),
+                               ','.join(osd['state']),
                                ])
 
         return 0, "", osd_table.get_string()