Description of problem: Based on the experience from the field the "/usr/bin/rgw-restore-bucket-index" tool stores temporary objects in /tmp directory, these objects consumes space based on the size of the bucket that is being recovered, for large buckets this can eventually lead to "/usr/bin/rgw-restore-bucket-index" tool failure due to running out of space, but the error message does not suggest that is the case, but rather fails with "ln: failed to access '/tmp/rgwrbi-object-list.XXX': No such file or directory" With that information, would it make sense to consider 2 improvements of the "/usr/bin/rgw-restore-bucket-index" tool: 1. add option for custom path where the files will be stored 2. add detection of running out of space Version-Release number of selected component (if applicable): RHCS 5, 6, 7 How reproducible: always Steps to Reproduce: 1. have 4GB large /tmp 2. attempt to recover bucket with 17M objects Actual results: Expected results: Additional info:
Should we target this at 7.1? Any other versions?
We need to pull the commits from 2 upstream PRs: https://github.com/ceph/ceph/pull/55885 https://github.com/ceph/ceph/pull/56133
(In reply to J. Eric Ivancich from comment #1) > Should we target this at 7.1? Any other versions? Hi Eric, it would be good to have it in all active versions so also RHCS 5, 6 and 7. With known impact and possible workaround (increase the /tmp size if possible) we could skip RHCS 5, but it would be nice to have it in next RHCS 6 version or RHCS 6.2 (not sure about what is the next planned version).
So I'm retargeting this BZ to 7.1 and we can clone it for the RHCS 6.*.
Two commits added to ceph-7.1-rhel-patches.
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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, 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-2024:3925
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days