Project

General

Profile

Actions

Feature #69203

open

support ObjectRestore notifications

Added by Yuval Lifshitz over 1 year ago. Updated 2 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Backport:
tentacle
Reviewed:
Affected Versions:
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-4074-gb56fccc902
Released In:
Upkeep Timestamp:
2026-02-26T12:39:14+00:00

Description

from here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html

we should add the following types:
s3:ObjectRestore:*
s3:ObjectRestore:Post
s3:ObjectRestore:Completed
s3:ObjectRestore:Delete

By using the ObjectRestore event types, you can receive notifications for event initiation and completion when restoring objects from the S3 Glacier Flexible Retrieval storage class, S3 Glacier Deep Archive storage class, S3 Intelligent-Tiering Archive Access tier, and S3 Intelligent-Tiering Deep Archive Access tier. You can also receive notifications for when the restored copy of an object expires.
The s3:ObjectRestore:Post event type notifies you of object restoration initiation. The s3:ObjectRestore:Completed event type notifies you of restoration completion. The s3:ObjectRestore:Delete event type notifies you when the temporary copy of a restored object expires.

this could be done similarly to how sync notifications are done. see: https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_cr_rados.cc#L720


Related issues 1 (1 open0 closed)

Copied to rgw - Backport #75180: tentacle: support ObjectRestore notificationsNewSoumya KoduriActions
Actions #1

Updated by Soumya Koduri over 1 year ago

  • Tags changed from notifications to notifications, cloud-restore
Actions #2

Updated by Yuval Lifshitz about 1 year ago ยท Edited

information on cloud restore is here: https://github.com/ceph/ceph/blob/main/src/doc/rgw/cloud-restore.md

adding the new types should be done here:
https://github.com/ceph/ceph/blob/main/src/rgw/rgw_notify_event_type.h

sending the notification (reserve and commit):
s3:ObjectRestore:Post: should probably be implemented in: https://github.com/ceph/ceph/blob/main/src/rgw/rgw_op.cc#L953
s3:ObjectRestore:Completed: in: https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_lc_tier.cc#L257
s3:ObjectRestore:Delete: in https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_sal_rados.cc#L3086 (for cloud-tier objects)

note that in case of "post" there is an actual reserve/commit process (similar to other notification sending in rgw_op.cc) since there is an actual client to send reply to.
while the other cases we ignore any "reserve" failures, similar to other lifecycle notifications.

Actions #3

Updated by Soumya Koduri 9 months ago

  • Assignee set to Soumya Koduri
Actions #4

Updated by Soumya Koduri 2 months ago

  • Status changed from New to Pending Backport
  • Backport set to tentacle
  • Pull request ID set to 65023
Actions #5

Updated by Upkeep Bot 2 months ago

  • Copied to Backport #75180: tentacle: support ObjectRestore notifications added
Actions #6

Updated by Upkeep Bot 2 months ago

  • Tags (freeform) set to backport_processed
Actions #7

Updated by Upkeep Bot 2 months ago

  • Merge Commit set to b56fccc902d80f3fea5e8b4b2d7d19cc424f5500
  • Fixed In set to v20.3.0-4074-gb56fccc902
  • Upkeep Timestamp set to 2026-02-26T12:39:14+00:00
Actions

Also available in: Atom PDF