]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: filesystem pool size should use stored stat 41021/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Thu, 15 Apr 2021 13:28:52 +0000 (18:58 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Sun, 25 Apr 2021 21:01:26 +0000 (02:31 +0530)
Fixes: https://tracker.ceph.com/issues/50195
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Replaces 'bytes_used' with 'stored' stat to see the correct results
of CephFS pool stats.

(cherry picked from commit 7110fd4e0c257d20aa56591f05d74a2851a2fe00)

src/pybind/mgr/dashboard/controllers/cephfs.py

index 86fc5d5ee45bc790e57ad32e7cfdfb9ade3e3989..07139e78c7003e922e26af544f05ee2fd347d534 100644 (file)
@@ -222,7 +222,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']
             })