Skip to content

tentacle: rgw/cloud-restore: strip quotes from ETag on cloud tier fetch - #71414

Merged
batrick merged 1 commit into
ceph:tentaclefrom
mheler:wip-80060-tentacle
Sep 30, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
mheler:wip-80060-tentacle

Conversation

@mheler

@mheler mheler commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

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)
@mheler
mheler requested a review from a team as a code owner August 29, 2026 16:35
@mheler mheler added this to the tentacle milestone Aug 29, 2026
@github-actions github-actions Bot added the rgw label Aug 29, 2026
@mheler mheler changed the title tentacle: null tentacle: rgw/cloud-restore: strip quotes from ETag on cloud tier fetch Aug 29, 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 29, 2026
@mheler mheler removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 2, 2026

@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 #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

⚠️ 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 9c06b46 (cherry-pick of 35b4ef4)

Affected File(s)

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.


⚠️ 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 Sep 2, 2026
@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

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
@mheler, if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 30, 2026
@batrick
batrick merged commit 356a35e into ceph:tentacle Sep 30, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa ready-to-merge releng-audit-fail Release engineering: failed backport verification audit. rgw TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants