Project

General

Profile

Fix #7562

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

Added by Greg Farnum over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
Monitor
Target version:
Start date:
02/27/2014
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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?

Associated revisions

Revision a71ddb0b (diff)
Added by Sage Weil over 5 years ago

mon: make quorum list (by name) be in quorum order

Fixes: #7562
Signed-off-by: Sage Weil <>

History

#1 Updated by Sage Weil over 5 years ago

  • Status changed from New to Need Review

#2 Updated by Greg Farnum over 5 years ago

  • Status changed from Need Review to Resolved

Merged into master as of commit: aa7945a

Also available in: Atom PDF