]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: forward RADOS client instances for potential blacklist
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 3 Dec 2019 04:27:44 +0000 (20:27 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 4 Dec 2019 01:53:14 +0000 (17:53 -0800)
commitdf507cde8d71063d5873a42f668156e4c32e86f9
tree03ec2394d024f7622a2bb2344f29c76c2a21b343
parentf2986a4400bb73d5ed3a80f626011609976c375a
mgr: forward RADOS client instances for potential blacklist

The mgr creates a per-module RADOS client connection for modules which
interact with RADOS (e.g. the volumes module). These clients should also
be blacklisted when the active mgr is failed; we don't want the former
active mgr to continue interacting with RADOS when the new one takes
over. This is particularly impactful for avoiding extraneous
"unresponsive client" warnings from the MDS when the mgr switches
(especially in testing). The MDS will pickup the new OSD blacklists
which include's the old mgr's libcephfs instance and blacklist/evict
that session quietly.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
17 files changed:
src/include/rados/librados.h
src/libcephfs.cc
src/librados/RadosClient.cc
src/librados/RadosClient.h
src/librados/librados_c.cc
src/messages/MMgrBeacon.h
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/MgrStandby.cc
src/mgr/PyModuleRegistry.h
src/mon/MgrMap.h
src/mon/MgrMonitor.cc
src/pybind/cephfs/cephfs.pyx
src/pybind/mgr/mgr_module.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/rados/rados.pyx