Bug 1713779

Summary: rgw-multisite: 'radosgw-admin bilog trim' stops after 1000 entries
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vikhyat Umrao <vumrao>
Component: RGW-MultisiteAssignee: Casey Bodley <cbodley>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: high Docs Contact: Aron Gunn <agunn>
Priority: high    
Version: 3.2CC: agunn, assingh, cbodley, ceph-eng-bugs, ceph-qe-bugs, dfuller, jharriga, kmorey, mbenjamin, mhackett, tserlin
Target Milestone: rc   
Target Release: 3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-33.el7cp Ubuntu: ceph_12.2.12-30redhat1 Doc Type: Bug Fix
Doc Text:
.The `radosgw-admin bilog trim` command now fully trims the bucket index log Previously, the `radosgw-admin bilog trim` command only trimmed 1000 entries from the log, because only one OSD request was sent. With this release, the `radosgw-admin bilog trim` command now sends OSD requests in a loop until the bucket index log is completely trimmed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 15:10:58 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: 1726135    

Description Vikhyat Umrao 2019-05-24 19:40:51 UTC
Description of problem:
After RHCS 3.2 upgrade bilog still not getting trimmed as expected

Version-Release number of selected component (if applicable):
Red Hat Ceph Storage 3.2.z2

"usage": {
            "rgw.main": {
                "size": 3448463192,
                "size_actual": 3482226688,
                "size_utilized": 3448463192,
                "size_kb": 3367640,
                "size_kb_actual": 3400612,
                "size_kb_utilized": 3367640,
                "num_objects": 16468 <============================
            },


From listomap keys:
rados -p ma.rgw.buckets.index listomapkeys .dir.a9595924-6d2c-41ec-a1aa-872363988ebc.744164.1 > a9595924-6d2c-41ec-a1aa-872363988ebc.744164.1.omap.keys.txt


Line No.  Object name

  16468 test-file.txt


<...>

5356371 <80>0_00005068699.7476460.5

Means total bilog count = 5356371−16468 = 5339903.

Comment 36 errata-xmlrpc 2019-08-21 15:10:58 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, 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-2019:2538