]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix total objects/Avg object size in RGW Overview Page 61457/head
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Mon, 28 Oct 2024 10:09:52 +0000 (15:39 +0530)
committerAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Tue, 21 Jan 2025 04:50:53 +0000 (10:20 +0530)
commitbb0a85e58f8b4c57c5e95774942df46a7ede879c
treeb045dc9f17c68ab71bacd1a6712d653d3eb1175f
parentbb99a5f15156ea8bb5699c05de2d2016987c19e7
mgr/dashboard: fix total objects/Avg object size in RGW Overview Page

Till now we are calculating the total number of objects and the average
object size in the RGW Overview Page using `ceph df` command's output.
As per the discussion with RGW team, this data is not correct as S3
objects in rgw can occupy more than one rados object. This PR tends to
make the overview page's info in sync with the RGW bucket page's info.

Fixes: https://tracker.ceph.com/issues/68733
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 74b0749b7e63f2690a70d0226a1d730b23ddaea1)
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-bucket.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-bucket.service.ts
src/pybind/mgr/dashboard/services/cluster.py