]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr, mon: Keep upto date metadata with mgr for MONs 46427/head
authorPrashant D <pdhange@redhat.com>
Mon, 28 Mar 2022 13:02:08 +0000 (14:02 +0100)
committerPrashant D <pdhange@redhat.com>
Mon, 30 May 2022 13:12:28 +0000 (14:12 +0100)
commitee86927f84a9372eb433b6543ef3b93fbd01f597
treec19e0dd42068b2c5e87e616d9b538d6a897ccbfe
parent952cab438ba4ec7e873b391d1505e501a7b33a51
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