From: Sage Weil Date: Fri, 5 Nov 2021 18:24:47 +0000 (-0400) Subject: mgr/orchestrator: clean up 'orch osd rm status' X-Git-Tag: v17.1.0~491^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d507e5479f6be2510e1edcab03b238ced6b41aa6;p=ceph.git mgr/orchestrator: clean up 'orch osd rm status' Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index dde3397ce60c..5ee2ba3e8283 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -850,14 +850,17 @@ Usage: out = to_format(report, format, many=True, cls=None) else: table = PrettyTable( - ['OSD_ID', 'HOST', 'STATE', 'PG_COUNT', 'REPLACE', 'FORCE', 'DRAIN_STARTED_AT'], + ['OSD', 'HOST', 'STATE', 'PGS', 'REPLACE', 'FORCE', 'ZAP', + 'DRAIN STARTED AT'], border=False) table.align = 'l' + table._align['PGS'] = 'r' table.left_padding_width = 0 table.right_padding_width = 2 for osd in sorted(report, key=lambda o: o.osd_id): table.add_row([osd.osd_id, osd.hostname, osd.drain_status_human(), - osd.get_pg_count(), osd.replace, osd.force, osd.drain_started_at]) + osd.get_pg_count(), osd.replace, osd.force, osd.zap, + osd.drain_started_at or '']) out = table.get_string() return HandleCommandResult(stdout=out)