Skip to content

rgw: add RestoreStatus support to object listings - #67547

Merged
mheler merged 1 commit into
ceph:mainfrom
mheler:wip-list-restorestatus
May 18, 2026
Merged

mheler merged 1 commit into
ceph:mainfrom
mheler:wip-list-restorestatus

Conversation

@mheler

@mheler mheler commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

S3 clients can request restore status in listing responses through the x-amz-optional-object-attributes: RestoreStatus header, but we had no support for it. Rather than reading each object's attrs on every list call, this stores restore state directly in the bucket index entry.

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@cbodley cbodley left a comment

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.

looks wonderful overall. may be worth a note in PendingReleaseNotes that we've added support, but it won't work for existing objects

Comment thread src/cls/rgw/cls_rgw_types.cc Resolved
Comment thread src/rgw/rgw_rest_s3.cc Resolved
Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
@mheler
mheler force-pushed the wip-list-restorestatus branch from 56d1008 to 6917ba5 Compare February 26, 2026 20:00
@mheler
mheler force-pushed the wip-list-restorestatus branch from 6917ba5 to c403ecc Compare February 26, 2026 20:25
@cbodley

cbodley commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

this looks like something we could exercise in s3-tests - would you please add a test case for this?

@mheler

mheler commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

this looks like something we could exercise in s3-tests - would you please add a test case for this?

ceph/s3-tests#727

@mheler
mheler requested a review from cbodley March 4, 2026 12:56
@mheler

mheler commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

@soumyakoduri do you know if this will be making qa soon?

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

S3 clients can request restore status in listing responses through the
x-amz-optional-object-attributes header, but we had no support for it.
This stores the restore state in the bucket index so listings can
include <RestoreStatus> without having to read each object's attrs
individually.

Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler force-pushed the wip-list-restorestatus branch from c403ecc to 8d21ac4 Compare April 28, 2026 20:33
@mheler
mheler requested a review from a team as a code owner April 28, 2026 20:33
@mheler
mheler requested a review from soumyakoduri April 28, 2026 20:33
@anrao19

anrao19 commented May 12, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented May 18, 2026

Copy link
Copy Markdown
Contributor

pr testing is in progress .. https://tracker.ceph.com/issues/76520

pr testing completed : https://tracker.ceph.com/issues/76520 , and approved by @ivancich.
@mheler , if no further testing is needed then this pr can be merged

@anrao19

anrao19 commented May 18, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@anrao19

anrao19 commented May 18, 2026

Copy link
Copy Markdown
Contributor

jenkins test docs

@anrao19

anrao19 commented May 18, 2026

Copy link
Copy Markdown
Contributor

jenkins render docs

@mheler
mheler merged commit 48bd88f into ceph:main May 18, 2026
6 checks passed
@mheler
mheler deleted the wip-list-restorestatus branch May 18, 2026 11:23
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.

4 participants