Fix #7562
mon: pretty-print of mon status should keep monitor ranks and names aligned
% 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?
Associated revisions
mon: make quorum list (by name) be in quorum order
Fixes: #7562
Signed-off-by: Sage Weil <sage@inktank.com>
History
#1 Updated by Sage Weil about 9 years ago
- Status changed from New to Fix Under Review
#2 Updated by Greg Farnum about 9 years ago
- Status changed from Fix Under Review to Resolved
Merged into master as of commit: aa7945a