Bug 1954748

Summary: rgw: multipart re-uploads can have NUL char in rados object name and breaks rgw-orphan-list
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: J. Eric Ivancich <ivancich>
Component: RGWAssignee: J. Eric Ivancich <ivancich>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, kbader, mbenjamin, sweil, tserlin, vereddy, vimishra
Target Milestone: ---   
Target Release: 4.2z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.11-150.el8cp, ceph-14.2.11-150.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-15 17:14:17 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 2021-04-28 17:50:46 UTC
Description of problem:

During a multipart re-upload, the semi-randomized rados object name selected might include a NUL character.

When this happens the grep commands in rgw-orphan-list exit early because they do not have a command-line option telling them to continue when binary characters are encountered.

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


How reproducible: Rare; requires multipart re-upload to be induced


Steps to Reproduce:
1. Induce multi-part re-upload
2. Run rgw-orphan-list
3.

Actual results:

rados objects created by rgw can have a NUL character in name; rgw-orphan-list produces incorrect results.

Expected results:

rados objects created by rgw never have NUL character in name; rgw-orphan-list produces correct results.

Additional info:

This combines two upstream commits together that are related by the NUL character.

Comment 1 RHEL Program Management 2021-04-28 17:50:49 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 8 tserlin 2021-05-26 20:45:12 UTC
*** Bug 1929905 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2021-06-15 17:14:17 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 (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix 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-2021:2445