Bug #6789
closed
cannot remove the leader when there only are two monitors
Added by Loïc Dachary over 10 years ago.
Updated almost 10 years ago.
Backport:
firefly,dumpling
Description
On Ubuntu precise with dumpling 0.67.4, create a new cluster with two monitors. ceph mon remove name_of_the_leader will succeed and add it back immediately afterwards. It was discussed today with joao who suggests looking into extra_probe_peers.
This doesn't currently happen on latest. Haven't tested yet with latest dumpling and latest emperor.
- Status changed from New to In Progress
I was wrong. This does happen on current, and emperor, and dumpling.
The monitor has this features that allows him to attempt to join an existing quorum even if it the monitor itself is not in the monmap. However, this should only be allowed for fresh monitors. A monitor that has been marked (in its store) as having belonged to a quorum in the past should not be allowed to boot if it is not in the monmap, as that means it has been removed from the cluster. I'm currently building a patch for this.
Also, it's relevant to mention that this does not happen only with the leader. Any monitor that is removed from the monmap will attempt to join any existing quorum upon boot.
This is also an issue with upstart scripts and any other tool that restarts a mon once it shuts down. Although there is a bug on the monitor that allows a removed monitor to boot and find its way into the quorum again, anything that keeps restarting dead services is an active participant in the daemon being restarted -- and any patch to the mon won't be able to fix that but only avoid the mon from being an active participant in the cluster.
- Status changed from In Progress to Fix Under Review
- Assignee set to Joao Eduardo Luis
- Status changed from Fix Under Review to Pending Backport
- Status changed from Pending Backport to Resolved
- Backport set to firefly,dumpling
Also available in: Atom
PDF