Bug 1986160 - [RGW] radosgw-admin user stats showing 0 value for "size_utilized" and "size_kb_utilized" fields
Summary: [RGW] radosgw-admin user stats showing 0 value for "size_utilized" and "size_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 5.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 5.1
Assignee: J. Eric Ivancich
QA Contact: Gaurav Sitlani
Ranjini M N
URL:
Whiteboard:
Depends On:
Blocks: 1959686 2031073
TreeView+ depends on / blocked
 
Reported: 2021-07-26 19:30 UTC by Gaurav Sitlani
Modified: 2022-04-04 10:21 UTC (History)
11 users (show)

Fixed In Version: ceph-16.2.6-2.el8cp
Doc Type: Bug Fix
Doc Text:
.The `radosgw-admin user stats` command displays values for `size_utilized` and `size_kb_utilized` fields only when they are calculated Previously, when a user ran the `radosgw-admin user stats` command after adding buckets to the {storage-product} cluster, the output displayed incorrect values in the `size_utilized` and `size_kb_utilized` fields; they were always displayed as zero. With this release `size_utilized` and `size_kb_utilized` are only displayed when they are calculated to prevent incorrect values.
Clone Of:
Environment:
Last Closed: 2022-04-04 10:21:20 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 52073 0 None None None 2021-09-09 18:08:28 UTC
Red Hat Product Errata RHSA-2022:1174 0 None None None 2022-04-04 10:21:40 UTC

Description Gaurav Sitlani 2021-07-26 19:30:10 UTC
Description of problem:
radosgw-admin user stats showing 0 value for "size_utilized" and "size_kb_utilized" fields :

# radosgw-admin user stats --uid=gsitlani
{
    "stats": {
        "size": 13143938329,
        "size_actual": 13145272320,
        "size_utilized": 0,
        "size_kb": 12835878,
        "size_kb_actual": 12837180,
        "size_kb_utilized": 0,
        "num_objects": 1001
    },
    "last_stats_sync": "0.000000",
    "last_stats_update": "2021-07-23T19:56:18.114977Z"
}

Version-Release number of selected component (if applicable):
16.2.0-107.el8cp

How reproducible:
1. Deploy a 5.x cluster
2. Create a bucket or two in the cluster. 
3. Write some objects to the bucket and check the radosgw-admin bucket stats and radosgw-admin user stats outputs 

Actual results:
radosgw-admin user stats showing 0 value for "size_utilized" and "size_kb_utilized" fields.

Expected results:
Correct value for "size_utilized" and "size_kb_utilized" fields should be displayed in the user stats

Additional info :
https://bugzilla.redhat.com/show_bug.cgi?id=1984261#c13

Comment 28 errata-xmlrpc 2022-04-04 10:21:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1174


Note You need to log in before you can comment on or make changes to this bug.