Bug 1962575 - [RGW]: Post manual reshard, LC not processing on versioned bucket
Summary: [RGW]: Post manual reshard, LC not processing on versioned bucket
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 5.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: 5.2
Assignee: Matt Benjamin (redhat)
QA Contact: Chaithra
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 1959686 2102272
TreeView+ depends on / blocked
 
Reported: 2021-05-20 09:48 UTC by Tejas
Modified: 2022-08-09 17:36 UTC (History)
10 users (show)

Fixed In Version: ceph-16.2.8-11.el8cp
Doc Type: Bug Fix
Doc Text:
.Lifecycle policy for a versioned bucket no longer fails in between reshards Previously, due to an internal logic error, lifecycle processing on a bucket would be disabled during bucket resharding causing the lifecycle policies for an affected bucket to not be processed. With this fix, the bug has been rectified and the lifecycle policy for a versioned bucket no longer fails in between reshards.
Clone Of:
Environment:
Last Closed: 2022-08-09 17:35:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-1782 0 None None None 2021-09-18 17:43:42 UTC
Red Hat Product Errata RHSA-2022:5997 0 None None None 2022-08-09 17:36:30 UTC

Description Tejas 2021-05-20 09:48:48 UTC
Version-Release number of selected component (if applicable):
ceph version 16.2.0-4.el8cp 

How reproducible:
Always

Steps to Reproduce:
1. Create a versioned bucket, and upload 2500 small file objects
2. Manually reshard bucket from 11 to 31.
3. Upload 2500 more objects ( 1 version each for above created).
4. Enable policy to delete all non current versions in 1 day. After LC processing  no objects are deleted.


Additional info:

{
        "bucket": ":tjver3:adacbe1b-02b4-41b8-b11d-0d505b442ed4.294608.1",
        "started": "Wed, 19 May 2021 17:32:08 GMT",
        "status": "COMPLETE"
    },


~]# radosgw-admin bucket stats --bucket tjver3
{
    "bucket": "tjver3",
    "num_shards": 31,
    "tenant": "",
    "zonegroup": "3019de59-ddde-4c5c-b532-7cdd29de09a1",
    "placement_rule": "default-placement",
    "explicit_placement": {
        "data_pool": "",
        "data_extra_pool": "",
        "index_pool": ""
    },
    "id": "adacbe1b-02b4-41b8-b11d-0d505b442ed4.295562.1",
    "marker": "adacbe1b-02b4-41b8-b11d-0d505b442ed4.294608.1",
    "index_type": "Normal",
    "owner": "user1",
    "ver": "0#67,1#94,2#101,3#66,4#107,5#76,6#89,7#96,8#66,9#102,10#85,11#83,12#99,13#66,14#102,15#93,16#75,17#100,18#76,19#92,20#98,21#69,22#102,23#79,24#82,25#102,26#67,27#102,28#82,29#80,30#99",
    "master_ver": "0#0,1#0,2#0,3#0,4#0,5#0,6#0,7#0,8#0,9#0,10#0,11#0,12#0,13#0,14#0,15#0,16#0,17#0,18#0,19#0,20#0,21#0,22#0,23#0,24#0,25#0,26#0,27#0,28#0,29#0,30#0",
    "mtime": "2021-05-19T15:18:32.168614Z",
    "creation_time": "2021-05-19T12:47:52.290856Z",
    "max_marker": "0#,1#,2#,3#,4#,5#,6#,7#,8#,9#,10#,11#,12#,13#,14#,15#,16#,17#,18#,19#,20#,21#,22#,23#,24#,25#,26#,27#,28#,29#,30#",
    "usage": {
        "rgw.main": {
            "size": 55790000,
            "size_actual": 61440000,
            "size_utilized": 55790000,
            "size_kb": 54483,
            "size_kb_actual": 60000,
            "size_kb_utilized": 54483,
            "num_objects": 5000
        }

~]# cat  noncp.xml 
<LifecycleConfiguration>
  <Rule>
    <Prefix>obj</Prefix>
    <Status>Enabled</Status>
    <Expiration>
	<ExpiredObjectDeleteMarker>true</ExpiredObjectDeleteMarker>
    </Expiration>
    <NoncurrentVersionExpiration>     
        <NoncurrentDays>1</NoncurrentDays>    
    </NoncurrentVersionExpiration>
  </Rule>
</LifecycleConfiguration>

Comment 22 errata-xmlrpc 2022-08-09 17:35:53 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 Security, Bug Fix, and Enhancement 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:5997


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