Bug 1713779 - rgw-multisite: 'radosgw-admin bilog trim' stops after 1000 entries
Summary: rgw-multisite: 'radosgw-admin bilog trim' stops after 1000 entries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW-Multisite
Version: 3.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 3.3
Assignee: Casey Bodley
QA Contact: Tejas
Aron Gunn
URL:
Whiteboard:
Depends On:
Blocks: 1726135
TreeView+ depends on / blocked
 
Reported: 2019-05-24 19:40 UTC by Vikhyat Umrao
Modified: 2019-11-11 07:51 UTC (History)
11 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-08-21 15:10:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 40187 0 None None None 2019-06-06 19:22:46 UTC
Github ceph ceph pull 28430 0 'None' closed cls/rgw: keep issuing bilog trim ops after reset 2021-01-07 04:48:19 UTC
Red Hat Product Errata RHSA-2019:2538 0 None None None 2019-08-21 15:11:09 UTC

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


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