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 1780934

Summary: radosgw are not committing dynamic resharding
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Avi Avraham <aavraham>
Component: RGWAssignee: Or Friedmann <ofriedma>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, dwojewod, kbader, mbenjamin, sweil, tserlin
Target Milestone: z5   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-103.el7cp Ubuntu: ceph_12.2.12-98redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1817069 (view as bug list) Environment:
Last Closed: 2020-06-10 15:44:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1817069    

Description Avi Avraham 2019-12-08 14:18:06 UTC
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.

Comment 1 Avi Avraham 2019-12-08 14:20:26 UTC
A suggested fix was added to upstream by Or Fridman 
https://github.com/ceph/ceph/pull/31977

Comment 14 errata-xmlrpc 2020-06-10 15:44:17 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, 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