Repository navigation
tentacle: rgw/cloud-restore: strip quotes from ETag on cloud tier fetch - #71414
Conversation
When objects are restored from a cloud endpoint, the ETag value read from the HTTP response includes surrounding double-quotes per RFC 7232. RGW stores ETags unquoted internally, and dump_etag() adds its own quotes when serving responses. The mismatch results in double-quoted ETags like ""abc123-6"" on restored objects. Strip the quotes from both the etag output parameter and the RGW_ATTR_ETAG attribute after fetching from the cloud endpoint, matching the unquoted format RGW uses everywhere else. Signed-off-by: Matthew N. Heler <[email protected]> Conflicts: src/rgw/driver/rados/rgw_lc_tier.cc Tentacle lacks the upstream typo fix in the adjacent debug log line ("Sucessfully" vs "Successfully"), so the hunk did not apply cleanly. Resolved by taking the upstream version: the ETag unquoting block plus the corrected log message. (cherry picked from commit 35b4ef4)
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #71414 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 9c06b46 rgw/cloud-restore: strip quotes from ETag on cloud tier fetch | PR #67560 | 35b4ef4 rgw/cloud-restore: strip quotes from ETag on cloud tier fetch |
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 9c06b46 (cherry-pick of 35b4ef4)
Affected File(s)
src/rgw/driver/rados/rgw_lc_tier.cc
Range Diff
Click to expand
--- Original (35b4ef41)
+++ Backport (9c06b469)
@@ -11,3 +11,11 @@
matching the unquoted format RGW uses everywhere else.
Signed-off-by: Matthew N. Heler <[email protected]>
+Conflicts:
+ src/rgw/driver/rados/rgw_lc_tier.cc
+ Tentacle lacks the upstream typo fix in the adjacent debug log line
+ ("Sucessfully" vs "Successfully"), so the hunk did not apply
+ cleanly. Resolved by taking the upstream version: the ETag
+ unquoting block plus the corrected log message.
+
+(cherry picked from commit 35b4ef415fdfa697b00e49eceeb64bd1821ccbbc)
================================================================================
RANGE DIFF
================================================================================
1: 35b4ef415fd ! 1: 9c06b46984d rgw/cloud-restore: strip quotes from ETag on cloud tier fetch
@@ Commit message
matching the unquoted format RGW uses everywhere else.
Signed-off-by: Matthew N. Heler <[email protected]>
+ Conflicts:
+ src/rgw/driver/rados/rgw_lc_tier.cc
+ Tentacle lacks the upstream typo fix in the adjacent debug log line
+ ("Sucessfully" vs "Successfully"), so the hunk did not apply
+ cleanly. Resolved by taking the upstream version: the ETag
+ unquoting block plus the corrected log message.
+
+ (cherry picked from commit 35b4ef415fdfa697b00e49eceeb64bd1821ccbbc)
## src/rgw/driver/rados/rgw_lc_tier.cc ##
@@ src/rgw/driver/rados/rgw_lc_tier.cc: int rgw_cloud_tier_get_object(RGWLCCloudTierCtx& tier_ctx, bool head,
}
}
+- ldpp_dout(tier_ctx.dpp, 20) << __func__ << "(): Sucessfully fetched object from cloud bucket:" << dest_bucket << ", object: " << target_obj_name << dendl;
+ /*
+ * The HTTP ETag header value is a quoted-string per RFC 7232.
+ * Strip the surrounding quotes so we do not double quote them.
@@ src/rgw/driver/rados/rgw_lc_tier.cc: int rgw_cloud_tier_get_object(RGWLCCloudTie
+ i->second = std::move(bl);
+ }
+
- ldpp_dout(tier_ctx.dpp, 20) << __func__ << "(): Successfully fetched object from cloud bucket:" << dest_bucket << ", object: " << target_obj_name << dendl;
++ ldpp_dout(tier_ctx.dpp, 20) << __func__ << "(): Successfully fetched object from cloud bucket:" << dest_bucket << ", object: " << target_obj_name << dendl;
return ret;
}
+ 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.
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-09-10-10:17. |
pr testing completed and approved by @ivancich , more details : https://tracker.ceph.com/issues/80447 |
backport tracker: https://tracker.ceph.com/issues/80060
backport of #67560
parent tracker: https://tracker.ceph.com/issues/75198
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh