]> 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>
Tue, 19 Apr 2022 08:51:01 +0000 (14:21 +0530)
commitd3d68871a8e35dcb7ed87409b3803eef21c63fa8
treee13800b5b6e929d60e58bcae9293780a177949ca
parent6a3c584ec0eb0b0f40a1213c4a22d913986538b8
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)
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