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: v15.2.13~10^2~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41020%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. (cherry picked from commit 7110fd4e0c257d20aa56591f05d74a2851a2fe00) --- diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index db7e02753c65..d0cc5b84b33f 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -243,7 +243,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'] })