Bug 1855380 - rgw: incorporate fixes in rgw-orphan-list script from upstream 5.0
Summary: rgw: incorporate fixes in rgw-orphan-list script from upstream 5.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.0
Assignee: J. Eric Ivancich
QA Contact: Vivekanandan K
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-09 17:50 UTC by J. Eric Ivancich
Modified: 2021-08-30 08:26 UTC (History)
8 users (show)

Fixed In Version: ceph-15.2.4-16.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1855382 (view as bug list)
Environment:
Last Closed: 2021-08-30 08:26:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-1135 0 None None None 2021-08-30 00:12:41 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:26:18 UTC

Description J. Eric Ivancich 2020-07-09 17:50:39 UTC
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.

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 20:08:23 UTC
two commits cherry-picked to ceph-5.0-rhel-patches

Comment 6 Vivekanandan K 2021-06-04 05:19:51 UTC
Verified on 5.0:

```[cephuser@ceph-s3cmd-1622612004024-node5-osd-rgw ~]$ rgw-orphan-list 
Available pools:
    device_health_metrics
    .rgw.root
    default.rgw.log
    default.rgw.control
    default.rgw.meta
    default.rgw.buckets.index
    default.rgw.buckets.data
Which pool do you want to search for orphans? default.rgw.buckets.index
Pool is "default.rgw.buckets.index".
Note: output files produced will be tagged with the current timestamp -- 20210604051544.
running 'rados ls' at Fri Jun  4 01:15:53 EDT 2021
running 'radosgw-admin bucket radoslist' at Fri Jun  4 01:15:53 EDT 2021
computing delta at Fri Jun  4 01:15:54 EDT 2021
341 potential orphans found out of a possible 341 (100%).
The results can be found in './orphan-list-20210604051544.out'.
    Intermediate files are './rados-20210604051544.intermediate' and './radosgw-admin-20210604051544.intermediate'.
***
*** WARNING: This is EXPERIMENTAL code and the results should be used
***          only with CAUTION!
***
Done at Fri Jun  4 01:15:54 EDT 2021.```

Ceph version details:
```[cephuser@ceph-s3cmd-1622612004024-node5-osd-rgw ~]$ ceph --version
ceph version 16.2.0-46.el8cp (66a64d4057b4d63ac87706a71f1a92d88d700515) pacific (stable)
```

Comment 8 errata-xmlrpc 2021-08-30 08:26:04 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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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/RHBA-2021:3294


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