Project

General

Profile

Actions

Bug #21957

open

ceph osd status ignores --format option

Added by Nathan Cutler over 6 years ago. Updated about 5 years ago.

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   |
+----+-----------+-------+-------+--------+---------+--------+---------+
Actions #1

Updated by Nathan Cutler over 6 years ago

  • Release set to luminous

This is on v12.2.1

Actions #2

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 #3

Updated by Patrick Donnelly about 5 years ago

  • Project changed from Ceph to mgr
Actions

Also available in: Atom PDF