Bug #67978
openmgr/status: MDS rank info mismatch between cli and json output for standby-replay MDS
0%
Description
Description of problem:
MDS rank-info for standby replay MDS daemon is not matching between CLI and JSON output.
For a Standby Replay MDS deaemon attached to Active MDS with rank-0, rank info under Standby-Replay MDS shows as '0-s' in CLI and as '1' in JSON output, please refer below output for details.
CLI output:
-----------
[root@ceph-sumar-tfa-fix-h3305o-node7 ~]# ceph fs status
cephfs - 0 clients
======
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 active cephfs.ceph-sumar-tfa-fix-h3305o-node4.mpgdkm Reqs: 0 /s 10 13 12 0
1 active cephfs.ceph-sumar-tfa-fix-h3305o-node5.mjoicz Reqs: 0 /s 10 13 11 0
0-s standby-replay cephfs.ceph-sumar-tfa-fix-h3305o-node2.hhizjz Evts: 0 /s 0 3 2 0
1-s standby-replay cephfs.ceph-sumar-tfa-fix-h3305o-node6.oqyvda Evts: 0 /s 0 0 0 0
POOL TYPE USED AVAIL
cephfs.cephfs.meta metadata 168k 54.9G
cephfs.cephfs.data data 0 54.9G
STANDBY MDS
cephfs.ceph-sumar-tfa-fix-h3305o-node3.cllcsk
MDS version: ceph version 19.1.0-42.el9cp (03ae7f7ffec5e7796d2808064c4766b35c4b5ffb) squid (rc)
JSON output:
------------
[root@ceph-sumar-tfa-fix-h3305o-node7 ~]# ceph fs status --f json
{"clients": [{"clients": 0, "fs": "cephfs"}], "mds_version": [{"daemon": ["cephfs.ceph-sumar-tfa-fix-h3305o-node4.mpgdkm", "cephfs.ceph-sumar-tfa-fix-h3305o-node5.mjoicz", "cephfs.ceph-sumar-tfa-fix-h3305o-node2.hhizjz", "cephfs.ceph-sumar-tfa-fix-h3305o-node6.oqyvda", "cephfs.ceph-sumar-tfa-fix-h3305o-node3.cllcsk"], "version": "ceph version 19.1.0-42.el9cp (03ae7f7ffec5e7796d2808064c4766b35c4b5ffb) squid (rc)"}], "mdsmap": [{"caps": 0, "dirs": 12, "dns": 10, "inos": 13, "name": "cephfs.ceph-sumar-tfa-fix-h3305o-node4.mpgdkm", "rank": 0, "rate": 0, "state": "active"}, {"caps": 0, "dirs": 11, "dns": 10, "inos": 13, "name": "cephfs.ceph-sumar-tfa-fix-h3305o-node5.mjoicz", "rank": 1, "rate": 0, "state": "active"}, {"caps": 5, "dirs": 5, "dns": 5, "events": 0, "inos": 5, "name": "cephfs.ceph-sumar-tfa-fix-h3305o-node2.hhizjz", "rank": 1, "state": "standby-replay"}, {"caps": 5, "dirs": 5, "dns": 5, "events": 0, "inos": 5, "name": "cephfs.ceph-sumar-tfa-fix-h3305o-node6.oqyvda", "rank": 1, "state": "standby-replay"}, {"name": "cephfs.ceph-sumar-tfa-fix-h3305o-node3.cllcsk", "state": "standby"}], "pools": [{"avail": 58956873728, "id": 4, "name": "cephfs.cephfs.meta", "type": "metadata", "used": 172032}, {"avail": 58956873728, "id": 5, "name": "cephfs.cephfs.data", "type": "data", "used": 0}]}
Version-Release number of selected component (if applicable):19.1.0-42.el9cp
How reproducible: 5/5
Steps to Reproduce:
1. Configure Standby Replay MDS daemon
2. Run ceph fs status and ceph fs status --f json
3. Compare CLI and JSON output response for rank fields of Standby Replay MDS Daemon
Actual results: JSON Response shows rank as 1 for Standby Replay MDS attached to active MDS with rank 0.
Expected results: JSON response should match CLI output. In CLI, rank info for Standby Replay MDS is seen as '0-s', this information is helpful, as it helps us know that it is attached to active MDS with rank0, Likewise, for standby replay MDS with rank info as '1-s'.
Similar inputs should be available in JSON output too for standby replay MDS info.
Please look into https://bugzilla.redhat.com/show_bug.cgi?id=2307231 for more info
Updated by Kotresh Hiremath Ravishankar over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 59699
Updated by Venky Shankar over 1 year ago
- Category set to Correctness/Safety
- Status changed from Fix Under Review to Pending Backport
- Target version set to v20.0.0
- Source set to Development
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68411: squid: mgr/status: MDS rank info mismatch between cli and json output for standby-replay MDS added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68412: quincy: mgr/status: MDS rank info mismatch between cli and json output for standby-replay MDS added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68413: reef: mgr/status: MDS rank info mismatch between cli and json output for standby-replay MDS added
Updated by Upkeep Bot 9 months ago
- Merge Commit set to 9f1311f9001f81b6b88bef31f43721d755ac506a
- Fixed In set to v19.3.0-5377-g9f1311f9001
- Upkeep Timestamp set to 2025-07-08T18:45:11+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v19.3.0-5377-g9f1311f9001 to v19.3.0-5377-g9f1311f9001f
- Upkeep Timestamp changed from 2025-07-08T18:45:11+00:00 to 2025-07-14T15:45:30+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v19.3.0-5377-g9f1311f9001f to v19.3.0-5377-g9f1311f900
- Upkeep Timestamp changed from 2025-07-14T15:45:30+00:00 to 2025-07-14T21:09:54+00:00
Updated by Upkeep Bot 5 months ago
- Released In set to v20.2.0~1862
- Upkeep Timestamp changed from 2025-07-14T21:09:54+00:00 to 2025-11-01T01:02:24+00:00