Description of problem: There is a bucket that contains 2 Million objects, dynamic resharding is enabled, obj threshold for resharding is not defined (so it is 100K). The error when running radosgw-admin reshard add --bucket=check_dynamic --num-shards=2: ERROR: failed to list reshard log entries, oid=reshard.0000000000 ERROR: failed to list reshard log entries, oid=reshard.0000000001 ERROR: failed to list reshard log entries, oid=reshard.0000000002 ... ERROR: failed to list reshard log entries, oid=reshard.0000000015 Version-Release number of selected component (if applicable): 3.3z1 How reproducible: Steps to Reproduce: radosgw-admin reshard list --bucket=check_dynamic --num-shards=4 --debug-rgw=20 --rgw-zone=default Actual results: Command failed with the following error: Add Resharding is disabled Expected results: dynamic resharding will successfully run. Additional info: The problem, as indicated by Or Fridman from the consulting team, seems to have been that we did not have a default realm set (`radosgw-admin realm list` showed an empty list under `realms`). After modifying the zonegroup to the right realm id and then update period, after those dynamic resharding start to work.
A suggested fix was added to upstream by Or Fridman https://github.com/ceph/ceph/pull/31977
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, 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-2020:2488