]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr, pybind/mgr, mgr/stats: be resilient to offline rank0 MDS
authorJos Collin <jcollin@redhat.com>
Tue, 29 Jun 2021 09:59:01 +0000 (15:29 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 16 Feb 2022 05:48:45 +0000 (11:18 +0530)
commitc2470f271cce4d512f2cf00552c9b753e4c69f71
treeaefe5ca5335ae46630db0546c14a9d69e21612db
parent9d0d7a489ed8fd5b9f4071dbc1e3a079e858198e
mgr, pybind/mgr, mgr/stats: be resilient to offline rank0 MDS

Reregister the user queries during the rank0 MDS failover event
by calling listener.handle_query_updated(). This enables
`ceph fs perf stats` to receive the updated metrics after the
failover.

Fixes: https://tracker.ceph.com/issues/50033
Signed-off-by: Jos Collin <jcollin@redhat.com>
14 files changed:
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MDSPerfMetricCollector.cc
src/mgr/MDSPerfMetricCollector.h
src/mgr/MDSPerfMetricTypes.h
src/mgr/MetricCollector.cc
src/mgr/MetricCollector.h
src/pybind/mgr/ceph_module.pyi
src/pybind/mgr/mgr_module.py
src/pybind/mgr/stats/fs/perf_stats.py
src/pybind/mgr/stats/module.py