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>
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']}