From 7042ab4aa778e1e4f3590d29abcf36e186917df4 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Mon, 1 Apr 2024 10:25:43 +0530 Subject: [PATCH] mgr/stats: initialize mx_last_updated in FSPerfStats Fixes the error in teuthology log: AttributeError: 'FSPerfStats' object has no attribute 'mx_last_updated' Fixes: https://tracker.ceph.com/issues/65073 Signed-off-by: Jos Collin (cherry picked from commit b96ad6126110b292fca053fdfc6a956a6eb0f01e) --- src/pybind/mgr/stats/fs/perf_stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/stats/fs/perf_stats.py b/src/pybind/mgr/stats/fs/perf_stats.py index 9b5fadc9141f3..7d5dacfd31d34 100644 --- a/src/pybind/mgr/stats/fs/perf_stats.py +++ b/src/pybind/mgr/stats/fs/perf_stats.py @@ -141,6 +141,7 @@ class FSPerfStats(object): self.module = module self.log = module.log self.prev_rank0_gid = None + self.mx_last_updated = 0.0 # report processor thread self.report_processor = Thread(target=self.run) self.report_processor.start() -- 2.39.5