Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2225589

Summary: [rgw][rfe]: rgw-restore-bucket-index should be able to recover metadata for buckets in non-default realms 5.3z5
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: J. Eric Ivancich <ivancich>
Component: RGWAssignee: J. Eric Ivancich <ivancich>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.3CC: ceph-eng-bugs, cephqe-warriors, mkasturi, rmandyam, tserlin, vereddy
Target Milestone: ---Keywords: FutureFeature
Target Release: 5.3z5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-201.el8cp Doc Type: Enhancement
Doc Text:
Feature: rgw-restore-bucket-index now allows realm, zone, and zonegroup of bucket to be specified. Reason: Previously rgw-restore-bucket-index would only be able to restore the indices for buckets that were in the default realm, default zonegroup, and default zone. Result: Now rgw-restore-bucket-index is able to restore the indices for buckets that are in the non-default realm, non-default zonegroup, or non-default zone when the user specifies that info on the command-line.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-28 09:40:56 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 2023-07-25 14:15:23 UTC
This bug was initially created as a copy of Bug #2183926

I am copying this bug because: It should go into 5.3z5 also.



Description of problem:

rgw-restore-bucket-index should be able to recover metadata for buckets in non-default realms. If running the index-recover tool for a bucket belonging to a non-default rgw-realm, the error observed is :

[root@dell-r640-003 ~]# /usr/bin/rgw-restore-bucket-index -b bucket-3 -p local-zone.rgw.buckets.data
ERROR: unable to read entry-point metadata for bucket "bucket-3".

Requesting an enhancement to add an option to specify the realm name in the tool.

Workaround: Promote the realm to a default realm for the tool to work.

Version-Release number of selected component (if applicable):
16.2.10-160.el8cp

How reproducible:
Always

Comment 1 RHEL Program Management 2023-07-25 14:15:34 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 15 errata-xmlrpc 2023-08-28 09:40:56 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.3 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/RHBA-2023:4760