Bug 1855384

Summary: rgw: incorporate fixes in rgw-orphan-list script from upstream 3.3
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: J. Eric Ivancich <ivancich>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: high Docs Contact:
Priority: high    
Version: 3.3CC: cbodley, ceph-eng-bugs, kbader, mbenjamin, sweil, tchandra, tserlin, vimishra
Target Milestone: z6   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-122.el7cp Ubuntu: ceph_12.2.12-109redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1855382 Environment:
Last Closed: 2020-08-18 18:05:58 UTC Type: ---
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 2020-07-09 18:06:04 UTC
+++ This bug was initially created as a clone of Bug #1855382 +++

+++ This bug was initially created as a clone of Bug #1855380 +++

Description of problem:

When running the rgw-orphan-list script, if the current UTC time has a single digit hour (0-9 but not 10-23), then there will be a space in the timestamp. The timestamp is incorporated into intermediate and output filenames. In some cases in the script the filename isn't quoted, so the space will create an issue. Additionally it's more difficult for end-users to deal with spaces in filenames.

Also when rgw-orphan-list moved from downstream to upstream, it gained some clean-ups and functionality and a simplified build process, so we should synchronize with it.

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


How reproducible:

Very

Steps to Reproduce:
1. run rgw-orphan-list when the UTC hour is 0-9.

Actual results:

Script produces error.

Expected results:

Script should run without producing error.

Additional info:

Comment 1 J. Eric Ivancich 2020-07-09 19:16:41 UTC
4 commits cherry-picked to ceph-3.3-rhel-patches-STAGE

Comment 9 errata-xmlrpc 2020-08-18 18:05: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 (Moderate: Red Hat Ceph Storage 3.3 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-2020:3504