]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrStatMonitor: ignore MMgrReport from non-active mgr 43861/head
authorSage Weil <sage@newdream.net>
Thu, 18 Mar 2021 16:45:48 +0000 (11:45 -0500)
committerPonnuvel Palaniyappan <pponnuvel@gmail.com>
Tue, 9 Nov 2021 15:33:38 +0000 (15:33 +0000)
commit8d53b058ff5c76615cd375d1cc3ac7e2b6c0bba1
tree095a05328d550d43fd723e96a879a2c90f2b8401
parentc957a334aa466c39506f721205f626f44b405a03
mon/MgrStatMonitor: ignore MMgrReport from non-active mgr

If it's not the active mgr, we should ignore it.

Since the mgr instance is best identified by the gid, add that to the
message.  (We can't use the source_addrs for the message since that is
the MgrStandby monc addr, not the active mgr addrs in the MgrMap.)

This fixes a problem where a just-demoted mgr report gets processed and a
new mgr gets a ServiceMap with an epoch >= its pending map.  (At least,
that is my theory!)

Fixes: https://tracker.ceph.com/issues/48022
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 4d447092c3542bf57dfb4942db766adf2923c069)

Conflicts:
src/messages/MMonMgrReport.h
src/mon/MgrStatMonitor.cc
src/messages/MMonMgrReport.h
src/mgr/DaemonServer.cc
src/mon/MgrStatMonitor.cc