]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: store mon updates in ceph context for future MonMap instantiation 36533/head
authorShyamsundar Ranganathan <srangana@redhat.com>
Mon, 10 Aug 2020 00:47:43 +0000 (20:47 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Thu, 13 Aug 2020 20:04:52 +0000 (16:04 -0400)
commit7a1f02acfe6b5d8a760efd16bb594a0656b39eac
treec1cbb1f8f8d0c4d9e41f7736af7df7f537c758c7
parent4fea9a8be383374eb1d40f4a4048c4c1a4bd3373
mon: store mon updates in ceph context for future MonMap instantiation

MonMap builds initial mon list using provided sources, like
mon-host or monmap.

For future instantiations of MonClient, if mon addresses are
updated, stale information from the provided sources are used.

This commit retains mon updates that are processed by the
MonClient in CephContext, for use in MonMap instantiations
and hence uses updated information as required.

This is helpful in cases where librados or libcephfs
instantiate MonClient in the ceph-mgr deamon as required.

Fixes: https://tracker.ceph.com/issues/46645
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
src/common/ceph_context.cc
src/common/ceph_context.h
src/mon/MonClient.cc
src/mon/MonMap.cc
src/mon/MonMap.h
src/test/libcephfs/CMakeLists.txt
src/test/libcephfs/monconfig.cc [new file with mode: 0644]