Actions
Bug #21957
openceph osd status ignores --format option
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
There is an expectation that specifying the --format option to the "ceph" command will change the format of the output. For example ceph --format json-pretty status
returns pretty JSON output.
However, this does not hold for ceph osd status
:
smithfarm@vanguard1:~> sudo ceph osd status +----+-----------+-------+-------+--------+---------+--------+---------+ | id | host | used | avail | wr ops | wr data | rd ops | rd data | +----+-----------+-------+-------+--------+---------+--------+---------+ | 0 | vanguard2 | 8289M | 991G | 0 | 0 | 0 | 0 | | 1 | vanguard1 | 6968M | 993G | 0 | 0 | 0 | 0 | | 2 | vanguard2 | 7710M | 992G | 0 | 0 | 0 | 0 | | 3 | vanguard1 | 9031M | 991G | 0 | 0 | 0 | 0 | +----+-----------+-------+-------+--------+---------+--------+---------+ smithfarm@vanguard1:~> sudo ceph --format json-pretty osd status +----+-----------+-------+-------+--------+---------+--------+---------+ | id | host | used | avail | wr ops | wr data | rd ops | rd data | +----+-----------+-------+-------+--------+---------+--------+---------+ | 0 | vanguard2 | 8289M | 991G | 0 | 0 | 0 | 0 | | 1 | vanguard1 | 6968M | 993G | 0 | 0 | 0 | 0 | | 2 | vanguard2 | 7710M | 992G | 0 | 0 | 0 | 0 | | 3 | vanguard1 | 9031M | 991G | 0 | 0 | 0 | 0 | +----+-----------+-------+-------+--------+---------+--------+---------+
Updated by Chang Liu over 6 years ago
`ceph osd status` command implemented by a ceph-mgr plugin called `status`. this plugin is written by Python language and does not support format option now. do you need this feature?
Actions