Skip to content

tentacle: rgw: cloud-restore related backports - #69613

Open
soumyakoduri wants to merge 6 commits into
ceph:tentaclefrom
soumyakoduri:wip-skoduri-tentacle
Open

soumyakoduri wants to merge 6 commits into
ceph:tentaclefrom
soumyakoduri:wip-skoduri-tentacle

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR includes fixes for below backport trackers -

https://tracker.ceph.com/issues/75180
https://tracker.ceph.com/issues/76096
https://tracker.ceph.com/issues/74103
https://tracker.ceph.com/issues/76356
https://tracker.ceph.com/issues/73784

Signed-off-by: Soumya Koduri [email protected]

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.

The following notification events are added for restore operations as stated
in https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html

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.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 0059d5b)
Include `size` param in the restore API to read the actual object
size once restore is completed. This is needed to send bucket
notification to the client.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 5e2d2b5)
Validate if the restore_storage_class exists before restoring the
object. If it doesn't exist, fail the restore operation with EINVAL.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 9a9ca59)
@soumyakoduri
soumyakoduri requested review from a team as code owners June 20, 2026 19:53
@github-actions github-actions Bot added this to the tentacle milestone Jun 20, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 20, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 13, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Jul 13, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 13, 2026
@mheler

mheler commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-tentacle branch from 257c9f3 to 929fbed Compare August 6, 2026 05:21
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

/audit retest

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @soumyakoduri.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 8, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 8, 2026
Add a new tier-config option "location_constraint" to be configured
while using AWS non-default regions.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 7bca646)

Conflicts:
        src/rgw/rgw_zone.cc
This conflict arised because RGWZoneGroupPlacementTierS3::update_params()
and RGWZoneGroupPlacementTierS3::clear_params() APIs are not part of src/rgw/rgw_zone.cc
but are still defined in src/rgw/driver/rados/rgw_zone.cc() in tentacle branch.
Relevant changes have been made in src/rgw/driver/rados/rgw_zone.cc file instead
for this backport.
if the host_style is set to "Virtual", the endpoint URL and
host should be set to "<bucket_name>.host" while sending
requests.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit a3cba03)
@adamemerson adamemerson changed the title [tentacle][rgw] cloud-restore related backports tentacle: rgw: cloud-restore related backports Aug 13, 2026
@anrao19

anrao19 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

@ivancich

Copy link
Copy Markdown
Member

@soumyakoduri The lastest QA run has very similar errors to the previous run. See:

https://pulpito.ceph.com/?branch=wip-anrao6-testing-2026-08-18-1043-tentacle

And the cherry-pick of your PR was done on Aug 18, so after you fixed things by Aug 12th. Would you mind taking a look?

I'm going to remove the needs-qa label for the time-being.

@ivancich ivancich removed the needs-qa label Aug 19, 2026
Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
rely on.

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit cf99589)

Conflicts:
        src/rgw/driver/rados/rgw_rados.cc

This file had conflict as another commit(ceph#66487) which made changes to the same
RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.
@github-actions

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous override has been removed.

View workflow run

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #69613 SOURCE PR SOURCE STATUS
defbad4 rgw/restore: Add notifications for restore events PR #65023 0059d5b rgw/restore: Add notifications for restore events
a2c4e59 rgw/cloud-restore: Read size once restore is completed 5e2d2b5 rgw/cloud-restore: Read size once restore is completed
927b50a rgw/cloud-transition: Include LocationConstraint for non-default regions PR #66038 7bca646 rgw/cloud-transition: Include LocationConstraint for non-default regions
1e44bc4 rgw: Fix virtual-hosted style URL a3cba03 rgw: Fix virtual-hosted style URL
c734160 rgw/cloud-restore: Restoring to non-existent storage-class should fail PR #67601 9a9ca59 rgw/cloud-restore: Restoring to non-existent storage-class should fail
fc88214 rgw/cloud-restore: Correct the restore svc shutdown order PR #68452 cf99589 rgw/cloud-restore: Correct the restore svc shutdown order

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 927b50a (cherry-pick of 7bca646)

Affected File(s)

Range Diff

Click to expand
--- Original (7bca6467)
+++ Backport (927b50a2)
@@ -4,3 +4,12 @@
 while using AWS non-default regions.
 
 Signed-off-by: Soumya Koduri <[email protected]>
+(cherry picked from commit 7bca6467c783a7f33209721ea20d728e58daf457)
+
+Conflicts:
+        src/rgw/rgw_zone.cc
+This conflict arised because RGWZoneGroupPlacementTierS3::update_params()
+and RGWZoneGroupPlacementTierS3::clear_params() APIs are not part of src/rgw/rgw_zone.cc
+but are still defined in src/rgw/driver/rados/rgw_zone.cc() in tentacle branch.
+Relevant changes have been made in src/rgw/driver/rados/rgw_zone.cc file instead
+for this backport.

================================================================================
RANGE DIFF
================================================================================

1:  7bca6467c78 ! 1:  927b50a2c09 rgw/cloud-transition: Include LocationConstraint for non-default regions
    @@ Commit message
         while using AWS non-default regions.
     
         Signed-off-by: Soumya Koduri <[email protected]>
    +    (cherry picked from commit 7bca6467c783a7f33209721ea20d728e58daf457)
    +
    +    Conflicts:
    +            src/rgw/rgw_zone.cc
    +    This conflict arised because RGWZoneGroupPlacementTierS3::update_params()
    +    and RGWZoneGroupPlacementTierS3::clear_params() APIs are not part of src/rgw/rgw_zone.cc
    +    but are still defined in src/rgw/driver/rados/rgw_zone.cc() in tentacle branch.
    +    Relevant changes have been made in src/rgw/driver/rados/rgw_zone.cc file instead
    +    for this backport.
     
      ## doc/radosgw/cloud-restore.rst ##
     @@ doc/radosgw/cloud-restore.rst: objects as well::
    @@ src/rgw/driver/rados/rgw_sal_rados.cc: int RadosObject::transition_to_cloud(Buck
        ldpp_dout(dpp, 0) << "Transitioning object(" << o.key << ") to the cloud endpoint(" << endpoint << ")" << dendl;
      
     
    - ## src/rgw/rgw_zone.cc ##
    -@@ src/rgw/rgw_zone.cc: void RGWZoneGroupPlacementTierS3::decode_json(JSONObj *obj)
    -   } else {
    -     host_style = VirtualStyle;
    -   }
    -+  JSONDecoder::decode_json("location_constraint", location_constraint, obj);
    -   JSONDecoder::decode_json("target_storage_class", target_storage_class, obj);
    -   JSONDecoder::decode_json("target_path", target_path, obj);
    -   JSONDecoder::decode_json("acl_mappings", acl_mappings, obj);
    -@@ src/rgw/rgw_zone.cc: void RGWZoneGroupPlacementTierS3::dump(Formatter *f) const
    -   encode_json("region", region, f);
    -   string s = (host_style == PathStyle ? "path" : "virtual");
    -   encode_json("host_style", s, f);
    -+  encode_json("location_constraint", location_constraint, f);
    -   encode_json("target_storage_class", target_storage_class, f);
    -   encode_json("target_path", target_path, f);
    -   encode_json("acl_mappings", acl_mappings, f);
    -@@ src/rgw/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::update_params(const JSONFormattable& config)
    + ## src/rgw/driver/rados/rgw_zone.cc ##
    +@@ src/rgw/driver/rados/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::update_params(const JSONFormattable& config)
            host_style = VirtualStyle;
          }
        }
    @@ src/rgw/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::update_params(const JSONFo
        if (config.exists("target_storage_class")) {
          target_storage_class = config["target_storage_class"];
        }
    -@@ src/rgw/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::clear_params(const JSONFormattable& config)
    +@@ src/rgw/driver/rados/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::clear_params(const JSONFormattable& config)
        if (config.exists("target_storage_class")) {
          target_storage_class.clear();
        }
    @@ src/rgw/rgw_zone.cc: int RGWZoneGroupPlacementTierS3::clear_params(const JSONFor
          key.id.clear();
        }
     
    + ## src/rgw/rgw_zone.cc ##
    +@@ src/rgw/rgw_zone.cc: void RGWZoneGroupPlacementTierS3::decode_json(JSONObj *obj)
    +   } else {
    +     host_style = VirtualStyle;
    +   }
    ++  JSONDecoder::decode_json("location_constraint", location_constraint, obj);
    +   JSONDecoder::decode_json("target_storage_class", target_storage_class, obj);
    +   JSONDecoder::decode_json("target_path", target_path, obj);
    +   JSONDecoder::decode_json("acl_mappings", acl_mappings, obj);
    +@@ src/rgw/rgw_zone.cc: void RGWZoneGroupPlacementTierS3::dump(Formatter *f) const
    +   encode_json("region", region, f);
    +   string s = (host_style == PathStyle ? "path" : "virtual");
    +   encode_json("host_style", s, f);
    ++  encode_json("location_constraint", location_constraint, f);
    +   encode_json("target_storage_class", target_storage_class, f);
    +   encode_json("target_path", target_path, f);
    +   encode_json("acl_mappings", acl_mappings, f);
    +@@ src/rgw/rgw_zone.cc: int add_zone_to_group(const DoutPrefixProvider* dpp, RGWZoneGroup& zonegroup,
    + }
    + 
    + } // namespace rgw
    +-
    +
      ## src/rgw/rgw_zone_types.h ##
     @@ src/rgw/rgw_zone_types.h: struct RGWZoneGroupPlacementTierS3 {
        std::string region;

Deviation in Backport fc88214 (cherry-pick of cf99589)

Affected File(s)

Range Diff

Click to expand
--- Original (cf99589b)
+++ Backport (fc88214a)
@@ -1,6 +1,13 @@
 rgw/cloud-restore: Correct the restore svc shutdown order
 
-Stop restore worker threads prior to obj_expirer and other services
-(svc) shutdown which they rely on.
+Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
+rely on.
 
 Signed-off-by: Soumya Koduri <[email protected]>
+(cherry picked from commit cf99589b9dda3230e367cc112c415680b1f8a38b)
+
+Conflicts:
+        src/rgw/driver/rados/rgw_rados.cc
+
+This file had conflict as another commit(#66487) which made changes to the same
+RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.

================================================================================
RANGE DIFF
================================================================================

1:  cf99589b9dd ! 1:  fc88214a1b1 rgw/cloud-restore: Correct the restore svc shutdown order
    @@ Metadata
      ## Commit message ##
         rgw/cloud-restore: Correct the restore svc shutdown order
     
    -    Stop restore worker threads prior to obj_expirer and other services
    -    (svc) shutdown which they rely on.
    +    Stop restore worker threads prior to obj_expirer and other services (svc) shutdown which they
    +    rely on.
     
         Signed-off-by: Soumya Koduri <[email protected]>
    +    (cherry picked from commit cf99589b9dda3230e367cc112c415680b1f8a38b)
    +
    +    Conflicts:
    +            src/rgw/driver/rados/rgw_rados.cc
    +
    +    This file had conflict as another commit(#66487) which made changes to the same
    +    RGWRados::finalize() routine is still not backported to tentacle. Resolved the same.
     
      ## src/rgw/driver/rados/rgw_rados.cc ##
     @@ src/rgw/driver/rados/rgw_rados.cc: void RGWRados::finalize()
    @@ src/rgw/driver/rados/rgw_rados.cc: void RGWRados::finalize()
        lc = NULL; 
      
     @@ src/rgw/driver/rados/rgw_rados.cc: void RGWRados::finalize()
    +   if (run_bucket_logging_thread) {
          rgw::bucketlogging::shutdown();
        }
    - 
    +-
     -  if (use_restore_thread) {
     -    restore->stop_processor();
     -  }
     -  restore = NULL;
    -   delete index_completion_manager;
      }
      
    + /** 

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 19, 2026
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@soumyakoduri The lastest QA run has very similar errors to the previous run. See:

https://pulpito.ceph.com/?branch=wip-anrao6-testing-2026-08-18-1043-tentacle

And the cherry-pick of your PR was done on Aug 18, so after you fixed things by Aug 12th. Would you mind taking a look?

I'm going to remove the needs-qa label for the time-being.

Thanks Eric. I fixed the issue. However I request to include #66520 as well in the next run (as even that change is needed for clean shutdown)

@anrao19 anrao19 removed the wip-anrao6-testing wip-anrao6-testing label Aug 20, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test windows

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 20, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao5-testing-2026-10-28-0801-tentacle.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao5-testing-2026-10-28-0801-tentacle.

pr testing completed and approved by @ivancich more details on : https://tracker.ceph.com/issues/82206
@soumyakoduri , if no further testing is needed then this pr can be merged

@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

jenkins test windows

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.

6 participants