]> 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>
Fri, 10 Jun 2022 15:23:08 +0000 (20:53 +0530)
commit3c5fe2d1e3985775c7cb4697658169831765f7dc
tree92ad279e33ead6d583f7b979baf1f5a27be7cbcc
parentd21889f1c885f1fc856ca1a019f6f039ed2c6558
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>
(cherry picked from commit c2470f271cce4d512f2cf00552c9b753e4c69f71)

Conflicts:
       src/pybind/mgr/stats/fs/perf_stats.py
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