]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: filesystem pool size should use stored stat 40980/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Thu, 15 Apr 2021 13:28:52 +0000 (18:58 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 22 Apr 2021 11:12:13 +0000 (16:42 +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 a90fd2f4131776799fdb8b67dcb55cf4cf1f4f04..0a196913c2fe7415e4d15d18ae082fb096d5a464 100644 (file)
@@ -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']
             })