Project

General

Profile

Feature #50557

mgr/dashboard/mon: display election_strategy on monitors page

Added by Ernesto Puerta 15 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
General
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

As reported by pdhiran:

Description of problem:

With the new stretch mode [1] , we have options to change the election strategy [2], Add Site info to monitors1, and also add mons to disallowed leader [3]. This information is good to have in the monitors page in dashboard.

# ceph mon dump
dumped monmap epoch 11
epoch 11
fsid 0baa7897-b67c-41d8-93c7-5d681e130a37
last_changed 2021-04-27T16:47:09.792164+0000
created 2021-04-23T07:37:10.396483+0000
min_mon_release 16 (pacific)
election_strategy: 3
disallowed_leaders ceph-pdhiran-42-upgrade-1619161486874-node12-mon
0: [v2:10.0.208.124:3300/0,v1:10.0.208.124:6789/0] mon.ceph-pdhiran-42-upgrade-1619161486874-node12-mon; crush_location {datacenter=site3}
1: [v2:10.0.211.133:3300/0,v1:10.0.211.133:6789/0] mon.ceph-pdhiran-42-upgrade-1619161486874-node1-mon-mgr-installer-g; crush_location {datacenter=site1}
2: [v2:10.0.211.188:3300/0,v1:10.0.211.188:6789/0] mon.ceph-pdhiran-42-upgrade-1619161486874-node6-mon; crush_location {datacenter=site2}
3: [v2:10.0.211.203:3300/0,v1:10.0.211.203:6789/0] mon.ceph-pdhiran-42-upgrade-1619161486874-node2-mon; crush_location {datacenter=site1}
4: [v2:10.0.211.226:3300/0,v1:10.0.211.226:6789/0] mon.ceph-pdhiran-42-upgrade-1619161486874-node11-mon; crush_location {datacenter=site2}

Also, in Stretch mode, we add site info to each mon [1]. Displaying the site info if any

[1] https://docs.ceph.com/en/latest/rados/operations/stretch-mode/#id2
[2] https://docs.ceph.com/en/latest/rados/operations/change-mon-elections/
[3] https://docs.ceph.com/en/latest/rados/operations/change-mon-elections/#the-disallow-mode

Version-Release number of selected component (if applicable):

ceph version 16.2.0-15.el8cp (45431bcbeaa78047b98b434d1a6e71899a23553c) pacific (stable)

Steps to Reproduce:
1. Deploy a cluster with dashboard enabled.
2. Change election strategy/ Add site info.

Additional info:
Site info on mons is only configured when using election strategy 3. By default, all clusters are deployed with election strategy 1. So the additional info is present when the strategy is changed. All this is available via "ceph mon dump" command.

Also available in: Atom PDF