Bug 1703557

Summary: rgw: object expirer: handle resharded buckets
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Matt Benjamin (redhat) <mbenjamin>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact: Aron Gunn <agunn>
Priority: low    
Version: 3.2CC: agunn, cbodley, ceph-eng-bugs, ceph-qe-bugs, edonnell, kbader, mbenjamin, sweil, tchandra, tserlin
Target Milestone: rc   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-34.el7cp Ubuntu: ceph_12.2.12-31redhat1 Doc Type: Bug Fix
Doc Text:
.Swift object expiration is no longer effected by resharding The Swift object expiration code was not compatible with bucket index resharding. This behavior could stall object expiration for the buckets. The Swift object expiration code has been updated to identify buckets using a tenant and bucket name. This update allows the removal of expired objects from an already resharded and stalled bucket. As a result, the object expiration is no longer effected by bucket index resharding.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 15:10:51 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 Matt Benjamin (redhat) 2019-04-26 17:06:58 UTC
From upstream tracker:
"""

A bucket reshard causes swift object expiry to fail. While further swift client requests will still return a 404 as we check for obj expiry times in GET requests, the object is never deleted on disk, and the delete hint is already trimmed as we assume a non-findeable bucket means the bucket was deleted

$ swift upload foobar foo -H "X-Delete-After: 100" 
$ radosgw-admin bucket reshard foobar --num-shards 4 
$ sleep 100 && radosgw-admin objects expire --debug-rgw=20
$ radosgw-admin object stat --bucket foobar --object foo # returns 

"""

Comment 7 errata-xmlrpc 2019-08-21 15:10:51 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