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: VERIFIED --- QA Contact: Madhavi Kasturi <mkasturi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.3CC: ceph-eng-bugs, cephqe-warriors, mkasturi, 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: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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.