Project

General

Profile

Actions

Fix #7562

closed

mon: pretty-print of mon status should keep monitor ranks and names aligned

Added by Greg Farnum about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
Monitor
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

monmap e8: 3 mons at {cephmon10235=[x:x:x:103::79]:6789/0,cephmon10236=[x:x:x:101::8]:6789/0,cephmon10237=[x:x:x:102::41]:6789/0}, election epoch 11536, quorum 0,2 cephmon10235,cephmon10236

{"name":"cephmon10235","rank":2,"state":"peon","election_epoch":11534,"quorum":[0,2],"outside_quorum":[],"extra_probe_peers":[],"sync_provider":[],"monmap":{"epoch":8,"fsid":"7e14670e-a6f8-445b-b632-4b79bafc4781","modified":"2013-11-22 21:45:12.861260","created":"0.000000","mons":[{"rank":0,"name":"cephmon10236","addr":"[x:x:x:101::8]:6789\/0"},{"rank":1,"name":"cephmon10237","addr":"[x:x:x:102::41]:6789\/0"},{"rank":2,"name":"cephmon10235","addr":"[x:x:x:103::79]:6789\/0"}]}}

You'd think that cephmon10235 was rank 0 based on the first output, but it's not. I think we should be able to fix that?
Actions #1

Updated by Sage Weil about 10 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Greg Farnum about 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged into master as of commit: aa7945a

Actions

Also available in: Atom PDF