Bug 1975102 - [RADOS] ceph mon stat --format json-pretty return output in plain format
Summary: [RADOS] ceph mon stat --format json-pretty return output in plain format
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.3
Assignee: Neha Ojha
QA Contact: Pawan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-23 06:48 UTC by Vasishta
Modified: 2022-05-05 07:53 UTC (History)
9 users (show)

Fixed In Version: ceph-14.2.22-1.el8cp ceph-14.2.22-1.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-05 07:53:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 47899 0 None None None 2021-06-23 06:48:13 UTC
Github ceph ceph pull 37706 0 None closed nautilus: mon: have 'mon stat' output json as well 2021-06-23 06:48:13 UTC
Red Hat Issue Tracker RHCEPH-777 0 None None None 2021-08-19 16:40:24 UTC
Red Hat Product Errata RHSA-2022:1716 0 None None None 2022-05-05 07:53:50 UTC

Description Vasishta 2021-06-23 06:48:13 UTC
Description of problem:
ceph mon stat --format json-pretty return output in plain format

Version-Release number of selected component (if applicable):
ceph version 14.2.11-181.el8cp 

How reproducible:
Always

Steps to Reproduce:
1. In 4.x cluster try to retrieve mon status in json-pretty format

Actual results:
[root@e22-h18-b04-fc640 ~]# sudo ceph mon stat --format json-pretty

e1: 3 mons at {e22-h14-b04-fc640=[v2:172.16.39.51:3300/0,v1:172.16.39.51:6789/0],e22-h18-b01-fc640=[v2:172.16.36.221:3300/0,v1:172.16.36.221:6789/0],e22-h18-b04-fc640=[v2:172.16.37.23:3300/0,v1:172.16.37.23:6789/0]}, election epoch 146, leader 0 e22-h18-b01-fc640, quorum 0,2 e22-h18-b01-fc640,e22-h14-b04-fc640


Expected results:
[ceph: root@magna008 /]# ceph mon stat --format json-pretty

{
    "epoch": 3,
    "min_mon_release_name": "pacific",
    "num_mons": 3,
    "leader": "magna008",
    "quorum": [
        {
            "rank": 0,
            "name": "magna008"
        },
        {
            "rank": 1,
            "name": "magna057"
        },
        {
            "rank": 2,
            "name": "magna110"
        }
    ]
}

Additional info:
(Already fixed upstream, Filed BZ to track verification in 4.3)

Comment 11 errata-xmlrpc 2022-05-05 07:53:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 4.3 Security and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1716


Note You need to log in before you can comment on or make changes to this bug.