Bug 1986160

Summary: [RGW] radosgw-admin user stats showing 0 value for "size_utilized" and "size_kb_utilized" fields
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Gaurav Sitlani <gsitlani>
Component: RGWAssignee: J. Eric Ivancich <ivancich>
Status: CLOSED ERRATA QA Contact: Gaurav Sitlani <gsitlani>
Severity: medium Docs Contact: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 5.0CC: agunn, cbodley, ceph-eng-bugs, ivancich, kbader, kdreyer, mbenjamin, mkasturi, rmandyam, tserlin, vimishra
Target Milestone: ---   
Target Release: 5.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 10:21:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1959686, 2031073    

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