Repository navigation
rgw: compress/decompress objects during lifecycle transitions - #67725
Conversation
cbodley
left a comment
There was a problem hiding this comment.
looks great so far 👍 we'll want to validate with test coverage
|
It seems that we overlooked the validation of the compression algorithm in our S3 tests, as there are no signs of compression in the header responses. This means that an S3 client cannot detect it, and the RGW will decompress it if the I suggest that we expose a header whenever the configuration allows this so that we can utilize it in our test suite. |
58ec2d0 to
d8d4167
Compare
@clwluvw i agree that we want test coverage, but compression is transparent to s3 clients. our s3-tests should ideally only test s3-compatible behavior and not rely on rgw-specific extensions. instead of writing tests against non-s3 response headers, maybe we could write a separate workunit script that can inspect internal object metadata with commands like 'radosgw-admin object stat' |
d8d4167 to
729f5cd
Compare
There is an included qa test suite, please feel free to review it. It covers the required validation, and was used by myself and Clyso when testing this commit. |
5becdb8 to
1e19f00
Compare
|
Internally the QA tests passed for rgw/verify and rgw/lifecycle. Please let me know if there are any further review concerns. |
|
I tested some containers that Matt built for this and it works in my testing. |
|
adding pending-discussion after weekly rgw meeting, i think the plan is to handle re-encryption here too |
bf3c58e to
97710e5
Compare
I pushed an update to include that now. Please review when you can @cbodley |
e95fb9f to
df4ff2f
Compare
@benhanokh please take a look at d467c5d |
The change looks good. |
d467c5d to
99834ef
Compare
@benhanokh would you mind taking a look at 99834ef that should cover the two attributes. |
f4e08c2 to
b6bafc2
Compare
|
jenkins test api |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
It appeared this failed a compress/decompress test during the QA run: https://pulpito.ceph.com/anuchaithra-2026-06-25_04:48:32-rgw-wip-anrao4-testing-2026-06-23-1616-distro-default-trial/314762/ Here's the full run: https://pulpito.ceph.com/anuchaithra-2026-06-25_04:48:32-rgw-wip-anrao4-testing-2026-06-23-1616-distro-default-trial/ I removed the needs-qa label so this can be addressed. |
|
in teuthology.log i see a segfault in |
|
I am looking into this. The recent KMS cache changes when merged into this branch have an outstanding issue with a null reference / perf counter being called by radosgw-admin |
…ions Extract the decrypt/decompress/recompress/re-encrypt filter pipeline into a shared RGWRecompressDPF base class. RGWTransitionDPF is added for lifecycle transitions and RGWCopyObjDPF is rewritten on top of the same base, both as thin subclasses providing key retrieval and compression config. Add rgw_prepare_decrypt_object() for decrypting from stored attrs without an HTTP request context (handles SSE-KMS/-GCM, SSE-S3/-GCM, RGW-AUTO/-GCM), and rgw_prepare_reencrypt_object() which regenerates the GCM salt before re-deriving the per-object key — avoids AEAD nonce reuse when LC re-encrypts modified plaintext. Includes a QA workunit that drives transitions through three storage classes with different compression configs and verifies data integrity, including with SSE-KMS encrypted objects. Signed-off-by: Matthew N. Heler <[email protected]>
Without a facet marker, teuthology concatenated all three yamls into one job, running plain, CBC, and GCM workunits back-to-back under whichever rgw override won. Signed-off-by: Matthew N. Heler <[email protected]>
Do not carry RGW_ATTR_SHARE_MANIFEST or RGW_ATTR_BLAKE3 when object data or manifest ownership is rewritten through admin rewrite, remote fetch, CopyObject, or lifecycle transition. Both attributes describe RGW dedup state for an existing RADOS layout: the shared-manifest marker and the blake3 digest of the object's on-disk bytes. Once a path writes a new layout or creates a new destination head with its own refcount tag, preserving them leaves stale dedup on the destination. Signed-off-by: Matthew N. Heler <[email protected]>
Guard the KMS key fetch so we only touch perfcounter when it exists. The fetch latency PerfGuard now sits in an optional and the error counters are wrapped in an if, so both are skipped when perfcounter is null. This keeps key reconstitution working from radosgw-admin (like lc process), where the perfcounter global isn't set up the way it is inside radosgw. Signed-off-by: Matthew N. Heler <[email protected]>
b6bafc2 to
84d7550
Compare
Lifecycle transitions raw-copy object data, ignoring compression settings on the destination storage class. This adds decompression/recompression support to transition_obj() so objects get the right compression when they move between classes.
Fixes: https://tracker.ceph.com/issues/75411
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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.