.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.
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
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
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