Repository navigation
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
16 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
ok to test |
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-07-24-05:41. |
@lumir-sliva , shaman build creation is failing could you please check : https://shaman.ceph.com/builds/ceph/wip-anuchaithra-testing-20260724.054106-tentacle/ |
The x-amz-expiration response header describes the current-version
Expiration lifecycle action for an object. s3_expiration_header() instead
selected between the Expiration and the NoncurrentVersionExpiration rule
based on whether the object key carried an instance id:
const LCExpiration& rule_expiration =
(obj_key.instance.empty()) ? expiration : noncur_expiration;
This was wrong in two ways. OLH resolution writes the current version's
instance id into the key before the header is computed, so even a plain
GET/HEAD of the current version (no versionId) was treated as a
non-current request and reported a NoncurrentVersionExpiration rule. And
x-amz-expiration is not meant to surface NoncurrentVersionExpiration at
all. A versioned bucket whose only rule was NoncurrentVersionExpiration
therefore returned a bogus expiry-date and rule-id on the current object,
for both a plain request and a versionId request.
Compute the header from the current-version Expiration rule only, and
return no header when the request targets a specific version. The header
helper now passes the client request key (s->object_key) rather than the
OLH-resolved key, so a plain GET/HEAD of the current version is no longer
misclassified as a versioned request.
Add a unit test covering a noncurrent-only policy (no header for either a
plain or a versioned request) and a combined policy (the current
Expiration rule for the current version, no header for a versionId
request).
Tracker: https://tracker.ceph.com/issues/77564
Reported-by: Saravanan Palanisamy
Signed-off-by: Lumir Sliva <[email protected]>
(cherry picked from commit 960b330)
Conflicts:
src/rgw/rgw_rest_s3.cc: req_state::object_key does not exist on
this branch (added by f9cf6f6, not backported). Build the
equivalent client request key from the object name plus the
requested versionId inline instead.
d174c70 to
30daa12
Compare
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #70494 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 30daa12 rgw/lc: report x-amz-expiration only for the current version | PR #69642 | 960b330 rgw/lc: report x-amz-expiration only for the current version |
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 30daa12 (cherry-pick of 960b330)
Affected File(s)
src/rgw/rgw_rest_s3.cc
Range Diff
Click to expand
--- Original (960b330d)
+++ Backport (30daa120)
@@ -31,3 +31,10 @@
Tracker: https://tracker.ceph.com/issues/77564
Reported-by: Saravanan Palanisamy
Signed-off-by: Lumir Sliva <[email protected]>
+(cherry picked from commit 960b330d87d9fe979e74ada6d7b1ba1fa403e40c)
+
+Conflicts:
+ src/rgw/rgw_rest_s3.cc: req_state::object_key does not exist on
+ this branch (added by f9cf6f6e8b1, not backported). Build the
+ equivalent client request key from the object name plus the
+ requested versionId inline instead.
================================================================================
RANGE DIFF
================================================================================
1: 960b330d87d ! 1: 30daa120099 rgw/lc: report x-amz-expiration only for the current version
@@ Commit message
Tracker: https://tracker.ceph.com/issues/77564
Reported-by: Saravanan Palanisamy
Signed-off-by: Lumir Sliva <[email protected]>
+ (cherry picked from commit 960b330d87d9fe979e74ada6d7b1ba1fa403e40c)
+
+ Conflicts:
+ src/rgw/rgw_rest_s3.cc: req_state::object_key does not exist on
+ this branch (added by f9cf6f6e8b1, not backported). Build the
+ equivalent client request key from the object name plus the
+ requested versionId inline instead.
## src/rgw/rgw_lc.cc ##
@@ src/rgw/rgw_lc.cc: std::string s3_expiration_header(
@@ src/rgw/rgw_rest_s3.cc: static inline std::string get_s3_expiration_header(
req_state* s,
const ceph::real_time& mtime)
{
-+ /* Use the client-supplied request key (s->object_key), not the
-+ * OLH-resolved key. OLH resolution fills in the current version's instance
-+ * id even when the client did not request a specific version, which would
-+ * otherwise make every versioned-bucket response look like a versionId
-+ * request. s3_expiration_header() keys its current-version decision off an
-+ * empty instance. */
++ /* Build the client-supplied request key rather than reusing the
++ * OLH-resolved key from s->object. OLH resolution fills in the current
++ * version's instance id even when the client did not request a specific
++ * version, which would otherwise make every versioned-bucket response look
++ * like a versionId request. s3_expiration_header() keys its current-version
++ * decision off an empty instance, so pass the object name with the requested
++ * versionId (empty for a plain request). */
return rgw::lc::s3_expiration_header(
- s, s->object->get_key(), s->tagset, mtime, s->bucket_attrs);
-+ s, s->object_key, s->tagset, mtime, s->bucket_attrs);
++ s, rgw_obj_key(s->object->get_key().name, s->info.args.get("versionId")),
++ s->tagset, mtime, s->bucket_attrs);
}
static inline bool get_s3_multipart_abort_header(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 for catching this, that's on me. The cherry-pick was clean textually but doesn't compile on tentacle: it uses Reworked it to build the equivalent key inline instead: which is exactly what A fresh shaman build should get past compile now, so feel free to re-trigger whenever it suits. |
|
@adamemerson Adam, would you be so kind and Clear the Audit report? 🙏 |
or @cbodley Casey I think only you can do it? |
|
@lumir-sliva can you please check this backport again; seems to be causing build failure for tentacle testing: @anrao19 has added 4 PRs as a part of https://tracker.ceph.com/issues/78633 including this one and builds fail: e.g.,https://jenkins.ceph.com/job/ceph-dev-pipeline/7608/ @anrao19 I think you'll need to just create a new test branch to pick the latest change on this PR to avoid the build failure. |
@BBoozmen Yes I fixed it in my latest forced push, look at my comment above, there's an explanation why. And we need the lead, who is Casey to approve/clear the audit report. |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
pr testing completed and approved by @ivancich : https://tracker.ceph.com/issues/78633 |
Backport of #69642 to tentacle.
The x-amz-expiration response header describes the current-version
Expiration lifecycle action for an object. s3_expiration_header() instead
selected between the Expiration and NoncurrentVersionExpiration rule based
on whether the resolved object key carried an instance id, so a plain
GET/HEAD of the current version (whose instance id is filled in by OLH
resolution) was misclassified as a non-current request and surfaced a
NoncurrentVersionExpiration rule that x-amz-expiration should never report.
This computes the header from the current-version Expiration rule only,
returns no header for a request targeting a specific versionId, and passes
the client request key rather than the OLH-resolved key.
Backport note (deviation from a clean cherry-pick, see the
Conflicts:blockin the commit): main passes
s->object_key, which was added by f9cf6f6and is not present on this branch. The equivalent client request key is built
inline as
rgw_obj_key(s->object->get_key().name, s->info.args.get("versionId"))instead. Functionally identical: object name plus the requested versionId
(empty for a plain request).
Tracker: https://tracker.ceph.com/issues/78567
Checklist