Repository navigation
tentacle: rgw: cloud-restore related backports - #69613
soumyakoduri wants to merge 6 commits into
Conversation
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)
|
LGTM, however @cbodley is already working on backporting https://tracker.ceph.com/issues/74103 under #66520 |
|
jenkins test make check |
257c9f3 to
929fbed
Compare
|
/audit retest |
|
🔄 Audit Retest Triggered by @soumyakoduri. |
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)
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-08-14-06:04. |
|
@soumyakoduri The lastest QA run has very similar errors to the previous run. See: 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. |
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.
64d7f44 to
fc88214
Compare
|
New commits were pushed to this PR, so the previous override has been removed. |
There was a problem hiding this comment.
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
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)
src/rgw/rgw_zone.cc
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)
src/rgw/driver/rados/rgw_rados.cc
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
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) |
|
jenkins test windows |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
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 |
|
jenkins test windows |
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
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.