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: v16.2.2~7^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a0e6308eede31540b7fa6516e88991a4f153e47d;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 a90fd2f413177..0a196913c2fe7 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'] })