Bug 2121519

Summary: RGW: set chunk size to stripe size if larger than stripe size
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Kyle Bader <kbader>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: ASSIGNED --- QA Contact: Madhavi Kasturi <mkasturi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.1CC: cbodley, ceph-eng-bugs, cephqe-warriors, kbader, kkeithle, mbenjamin, vdas
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Kyle Bader 2022-08-25 17:50:38 UTC
Description of problem:

By default rgw_max_chunk_size is 4MB and rgw_obj_stripe_size is 4MB

rgw_max_chunk_size needs to be <= rgw_obj_stripe_size

If it's not, and a client makes a PutObject call > rgw_obj_stripe_size, then it will fail (closes connection IIRC).

RHCS 5.1

How reproducible:

Easy, see above.

Steps to Reproduce:
1. Wet rgw_max_chunk_size to 16MB
2. Restart RGWs
3. PutObject > 4MB

Actual results:

Exception, connection closed.

Expected results:

RGW log a warning on startup and set rgw_max_chunk_size = rgw_obj_stripe_size if rgw_max_chunk_size > rgw_obj_stripe_size.

Comment 1 RHEL Program Management 2022-08-25 17:50:47 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.