New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mon:Re join the Monitor alone to form a cluster when it's rank=0 #7124
Conversation
Increase whether there is Monitor extra judgment. when there is Monitor information in the extra_probe_peers, it does not enter the win_standalone_election() process Fixes: #14263 Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@jecluis I'm not sure if this change is the most appropriate, please help to retrieve |
I tested a variety of scenes are no problem, and can be modified bug |
I need to take a better look at this - I'll do it later today. |
@jdurgin |
I'm not sure what this is trying to do. extra_probe_peers get added to the monmap when we're setting up a new one (that is, when we haven't already been in a quorum), so monmap->size()==1 already implies there are no extra_probe_peers when starting up for the first time. If we're starting up after having already been in a quorum, the extra_probe_peers don't matter as we already have knowledge of the system's genuine state. |
@gregsfortytwo |
@gregsfortytwo |
Yeah, in that ticket you set up mon240 with an existing monmap that only contains itself. That's expected behavior; you needed to tell it to join up with the others. See http://docs.ceph.com/docs/master/rados/operations/add-or-rm-mons/ for instructions. |
Wait, I misread the steps you followed. Still, I think you've misdiagnosed the problem. The new monitor is somehow losing track of the existing monitors which should be in its map. |
@gregsfortytwo @liewegas Monitor::bootstrap() // singleton monitor? |
@ gregsfortytwo |
Increase whether there is Monitor extra judgment. when there is Monitor information in the extra_probe_peers, it does not enter the win_standalone_election() process
Fixes: #14263
Signed-off-by: huanwen ren ren.huanwen@zte.com.cn