]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr, mon: Keep upto date metadata with mgr for MONs
authorPrashant D <pdhange@redhat.com>
Mon, 28 Mar 2022 13:02:08 +0000 (14:02 +0100)
committerPrashant D <pdhange@redhat.com>
Wed, 24 Aug 2022 15:48:59 +0000 (11:48 -0400)
commit0da036fb1908fb15676c02db791535df87d6e2ea
treea5d170424636460b8b95b9e6c6ee92f4b677d2e5
parent86f167fb8c2d3087d007cab5fe082eeb0f36d8a4
mgr, mon: Keep upto date metadata with mgr for MONs

The mgr updates mon metadata through handle_mon_map which
gets triggered when MONs were removed/added from/to cluster or
the active mgr is restarted or mgr failsover.
We could have handled metadata update through MMgrOpen or
early MMgrReport messages but these are sent before monitor
electin completes and lead monitor updates pending metadata
in monstore. Instead of relying on fetching mon metadata using
'ceph mon metadata <id>' command, explicitly send metadata
update request with mon metadata to mgr.

Fixes: https://tracker.ceph.com/issues/55088
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit 1a065043b964f8c014ebb5bc890a243c398ff07c)
src/messages/MMgrUpdate.h [new file with mode: 0644]
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MgrClient.cc
src/mgr/MgrClient.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc
src/msg/Message.cc
src/msg/Message.h
src/msg/MessageRef.h