Skip to content

rgw/s3: support paginated ListBuckets - #64742

Merged
cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-72315
Aug 27, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-72315

Conversation

@cbodley

@cbodley cbodley commented Jul 29, 2025

Copy link
Copy Markdown
Contributor

at some point, aws added pagination support to ListBuckets in the form of query params max-buckets and continuation-token

RGWListBuckets already supported pagination for the swift api, so we only need to hook up the s3 request/response formats to use it

Fixes: https://tracker.ceph.com/issues/72315

Show available Jenkins commands

@cbodley

cbodley commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

test case in ceph/s3-tests#679

Comment thread src/rgw/rgw_rest_s3.cc Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that the aws doc says "ContinuationToken is obfuscated and is not a real bucket."

but we make no effort to obfuscate here, like we don't for ListObjectsV2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when they say "obfuscated" they probably should mean "opaque"

@ivancich ivancich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread src/rgw/rgw_rest_s3.cc Resolved
at some point, aws added pagination support to ListBuckets[1] in the
form of query params max-buckets and continuation-token

RGWListBuckets already supported pagination for the swift api, so we
only need to hook up the s3 request/response formats to use it

Fixes: https://tracker.ceph.com/issues/72315

[1] https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html

Signed-off-by: Casey Bodley <[email protected]>
Comment thread src/rgw/rgw_rest_s3.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when they say "obfuscated" they probably should mean "opaque"

@cbodley

cbodley commented Aug 21, 2025 •

Copy link
Copy Markdown
Contributor Author

@cbodley

cbodley commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test api

@cbodley

cbodley commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@cbodley

cbodley commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@cbodley

cbodley commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test api

1 similar comment
@cbodley

cbodley commented Aug 25, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test api

@cbodley

cbodley commented Aug 25, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@cbodley

cbodley commented Aug 26, 2025

Copy link
Copy Markdown
Contributor Author

https://jenkins.ceph.com/job/ceph-pull-requests-arm64/79833/

The following tests FAILED:
7 - run-tox-mgr-dashboard-py3 (Failed)
262 - unittest_rbd_mirror (SEGFAULT)

@cbodley

cbodley commented Aug 26, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants