Project

General

Profile

Bug #40872

rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high

Added by J. Eric Ivancich over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Target version:
% Done:

0%

Source:
Tags:
Backport:
nautilus, mimic, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

When listing a bucket with radosgw-admin, the user can specify the
maximum number of entries. That number can be unreasonably large, and
can affect the performance and memory availability. For example:

radosgw-admin bucket list --bucket mybucket1 --max-entries=10000000

This has the potential for creating large data structures at multiple
levels in the the call stack of the radosgw(-admin) process,
potentially causing the process to run out of memory. This change
limits the maximum number of entries requested in all but the high
level code to help mitigate this issue.


Related issues

Related to rgw - Bug #41655: rgw: fix minimum of unordered bucket listing Resolved 09/04/2019
Copied to rgw - Backport #41102: nautilus: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high Resolved
Copied to rgw - Backport #41103: mimic: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high Resolved
Copied to rgw - Backport #41104: luminous: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high Resolved

History

#1 Updated by Casey Bodley over 1 year ago

  • Status changed from In Progress to 7

#2 Updated by J. Eric Ivancich over 1 year ago

  • Status changed from 7 to Pending Backport

#3 Updated by Patrick Donnelly over 1 year ago

  • Copied to Backport #41102: nautilus: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#4 Updated by Patrick Donnelly over 1 year ago

  • Copied to Backport #41103: mimic: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#5 Updated by Patrick Donnelly over 1 year ago

  • Copied to Backport #41104: luminous: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#6 Updated by Nathan Cutler about 1 year ago

  • Related to Bug #41655: rgw: fix minimum of unordered bucket listing added

#7 Updated by Nathan Cutler about 1 year ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF