From: Nitzan Mordechai Date: Wed, 3 Sep 2025 12:03:02 +0000 (+0000) Subject: mgr/telemetry: get mutable copy for pool stats X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b69f0f2d0ecd94a89ef9c49a1a78d924e16d1b1;p=ceph.git mgr/telemetry: get mutable copy for pool stats Since we are changing the 'application' for the report, we need non-RO, in case of cached api call. using 'pool_stats' map directly to avoid copy of the pg_dump that can be huge. Fixes: https://tracker.ceph.com/issues/72447 Signed-off-by: Nitzan Mordechai --- diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index 1c604ad3ab5..ce834bb470c 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -748,8 +748,7 @@ class Module(MgrModule): return self.get('io_rate') def get_stats_per_pool(self) -> dict: - result = self.get('pg_dump')['pool_stats'] - + result = self.get('pool_stats', mutable=True)['pool_stats'] # collect application metadata from osd_map osd_map = self.get('osd_map') application_metadata = {pool['pool']: pool['application_metadata'] for pool in osd_map['pools']}