]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: filesystem pool size should use stored stat 41020/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 20:54:25 +0000 (02:24 +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 db7e02753c6559abdf6955da7846ca0c7e2cbb88..d0cc5b84b33fc196d34950891863b1d14cc22aa2 100644 (file)
@@ -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']
             })