]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: store mon updates in ceph context for future MonMap instantiation
authorShyamsundar Ranganathan <srangana@redhat.com>
Mon, 10 Aug 2020 00:47:43 +0000 (20:47 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Sun, 20 Sep 2020 11:45:53 +0000 (07:45 -0400)
commit2878547f54a06d6871a1c2d85c7b60f4a54a19eb
tree87d70d39843984bfad820f3f05747dce0c419632
parentc11230e78d6815872310217806bfc3c6f3d5d5c2
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>
(cherry picked from commit 7a1f02acfe6b5d8a760efd16bb594a0656b39eac)
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]