Bug 1689266

Summary: rgw: unordered bucket listing markers do not handle adorned object names correctly
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: J. Eric Ivancich <ivancich>
Component: RGWAssignee: J. Eric Ivancich <ivancich>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 3.1CC: agunn, anharris, cbodley, ceph-eng-bugs, ceph-qe-bugs, kbader, mbenjamin, sweil, tchandra, tserlin
Target Milestone: z2   
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.8-97.el7cp Ubuntu: ceph_12.2.8-82redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-30 15:57:08 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:

Description J. Eric Ivancich 2019-03-15 14:40:04 UTC
Description of problem: When using a marker to advanced an unordered bucket listing, the listing could either skip ahead or skip backwards


Version-Release number of selected component (if applicable):


How reproducible: Very


Steps to Reproduce:
1. Create a bucket and then put more than 3,000 objects with adorned names in it (e.g., boto3's s3_client.create_multipart_upload call).
2. List the bucket with the unordered flag set to true and a max of a fraction of objects (if 3,000 objects, use a max of 1,000) to force multiple calls with a marker
3. Examine listing

Actual results: Listing might loop backwards, possibly never completing, or items may be skipped, or items may appear multiple times


Expected results: Every object listed exactly once


Additional info:

Upstream fix: http://tracker.ceph.com/issues/38486 (although downstream does not currently use unordered bucket listing for lifecycle, so the issue is not seen in that context)

Comment 13 errata-xmlrpc 2019-04-30 15:57:08 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:0911