]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: get mutable copy for pool stats
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 3 Sep 2025 12:03:02 +0000 (12:03 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Wed, 3 Jun 2026 09:13:28 +0000 (09:13 +0000)
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 <nmordec@ibm.com>
src/pybind/mgr/telemetry/module.py

index 1c604ad3ab5848434aa9ede03ea0604fbfa92de0..ce834bb470c5a820f157095242a774d43b1c866d 100644 (file)
@@ -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']}