]> 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:33:02 +0000 (07:33 -0400)
commit2f075704073ff80f94c70cf79516028d2754ae4f
treee6c2a9fc1e4a6dd2fac768c72acbcec2c9854f22
parent011e0c4bef9d8631e5cbfa1c15ef38b496f06f07
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)
Conflicts:
    src/mon/MonMap.h
Retain crimson namespace as ceph::common
    src/mon/MonMap.cc
Address merge conflict due to linespace removed
    src/common/ceph_context.cc
Remove WITH_ALIEN latch
    src/common/ceph_context/h
Remove WITH_ALIEN latch
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]