From: Avan Thakkar Date: Thu, 15 Apr 2021 13:28:52 +0000 (+0530) Subject: mgr/dashboard: filesystem pool size should use stored stat X-Git-Tag: v17.1.0~2210^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40874%2Fhead;p=ceph.git mgr/dashboard: filesystem pool size should use stored stat Fixes: https://tracker.ceph.com/issues/50195 Signed-off-by: Avan Thakkar Replaces 'bytes_used' with 'stored' stat to see the correct results of CephFS pool stats. --- diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index a90fd2f41317..0a196913c2fe 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -256,7 +256,7 @@ class CephFS(RESTController): pools_table.append({ "pool": pools[pool_id]['pool_name'], "type": pool_type, - "used": stats['bytes_used'], + "used": stats['stored'], "avail": stats['max_avail'] })