Description of problem: mgr/stats can repeatedly report stale perf stats when MDS rank-0 becomes offline. Even after a standby daemon transitions to active rank-0, the metrics reported are still stale. To fix this, reregister user queries when a new MDS rank-0 is seen. Version-Release number of selected component (if applicable): 5.3 How reproducible: Always Steps to Reproduce: 1. Create a filesystem, mount it and run `watch ceph fs perf stats`. 2. Fail the rank0 mds. 3. `ceph fs perf stats` output shows stale metrics or no metrics. Actual results: `ceph fs perf stats` output shows stale metrics or no metrics. Expected results: `ceph fs perf stats` should display valid metrics. Additional info:
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Ceph Storage 5.3 Bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:0980