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.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7110fd4e0c257d20aa56591f05d74a2851a2fe00;p=ceph-ci.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 a90fd2f4131..0a196913c2f 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'] })