Repository navigation
rgw: emit bucket logging records for lifecycle delete actions - #69264
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. |
LC delete actions now emit LIFECYCLE.DELETE.OBJECT journal records via no-req_state overloads of the bucketlogging frontend. Signed-off-by: ShreeJejurikar <[email protected]>
63a25ae to
efeb0fe
Compare
Signed-off-by: ShreeJejurikar <[email protected]>
|
jenkins test windows |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test submodules |
|
jenkins test signed |
mattbenjamin
left a comment
There was a problem hiding this comment.
the lc specific stuff looks fine
|
pr testing completed and approved by @ivancich , more details : https://tracker.ceph.com/issues/77460. |
|
jenkins test make check arm64 |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]> (cherry picked from commit 7bdb627) Conflicts: src/rgw/rgw_bucket_logging.cc - Clash with minimal environment production from <ceph#69264>. Fixes: https://tracker.ceph.com/issues/78661 Signed-off-by: Adam C. Emerson <[email protected]>
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]> Conflicts: src/common/options/rgw.yaml.in - Intervening options in upstream and other backports src/rgw/rgw_bucket_logging.cc - Clash with minimal environment production from <ceph#69264>. src/rgw/rgw_common.cc src/rgw/rgw_op.cc - Clash with change in `RestrictPublicBuckets` handling in <ceph#64293>. src/test/rgw/test_rgw_iam_policy.cc - Original commit modified upstream tests (keystone, etc.) not in downstream Fixes: https://tracker.ceph.com/issues/78662 (cherry picked from commit 7bdb627)
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]> Conflicts: src/common/options/rgw.yaml.in - Intervening options in upstream and other backports src/rgw/rgw_bucket_logging.cc - Clash with minimal environment production from <ceph#69264>. src/rgw/rgw_common.cc src/rgw/rgw_op.cc - Clash with change in `RestrictPublicBuckets` handling in <ceph#64293>. src/test/rgw/test_rgw_iam_policy.cc - Original commit modified upstream tests (keystone, etc.) not in downstream Fixes: https://tracker.ceph.com/issues/78662 (cherry picked from commit 7bdb627)
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]> Conflicts: src/common/options/rgw.yaml.in - Intervening options in upstream and other backports src/rgw/rgw_bucket_logging.cc - Clash with minimal environment production from <ceph#69264>. src/rgw/rgw_common.cc src/rgw/rgw_op.cc - Clash with change in `RestrictPublicBuckets` handling in <ceph#64293>. src/test/rgw/test_rgw_iam_policy.cc - Original commit modified upstream tests (keystone, etc.) not in downstream Fixes: https://tracker.ceph.com/issues/78662 (cherry picked from commit 7bdb627)
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]> Conflicts: src/common/options/rgw.yaml.in - Intervening options in upstream and other backports src/rgw/rgw_bucket_logging.cc - Clash with minimal environment production from <ceph#69264>. src/rgw/rgw_common.cc src/rgw/rgw_op.cc - Clash with change in `RestrictPublicBuckets` handling in <ceph#64293>. src/test/rgw/test_rgw_iam_policy.cc - Original commit modified upstream tests (keystone, etc.) not in downstream Fixes: https://tracker.ceph.com/issues/78662 (cherry picked from commit 7bdb627)
LC actions that remove an object: current expiration, noncurrent expiration, and the source-delete branch of cloud-tier transitions, now emit a LIFECYCLE.DELETE.OBJECT journal record to the bucket's logging target.
The bucketlogging frontend's
log_record()andverify_target_bucket_policy()gain no-req_state overloads so callers without a request state (LC, and future non-HTTP callers) share the same code path. The req_state-bearing overloads route through the no-req_state primitives, so PutBucketLogging config validation and per-record log writes use identical inputs:source_accountfrombucket->get_owner()and a minimal IAM env with onlyaws:SourceArnandaws:SourceAccount. This eliminates a class of bugs where a logging configuration could validate at PUT time but fail at log time (or vice versa).LC integration tests in
src/test/rgw/bucket_logging/test_bucket_logging.pycover:Testing
Note for review
T6 (
test_lc_versioned_current_expiration_logs_journal_record) pins the journal record'sversion_idto'-'for versioned current-expiration — LC selects the object by key (not by version), so the SAL object's instance is unset and the formatter emits the placeholder. Happy to setobj->set_instance(o.key.instance)beforeremove_expired_objin this PR if logging the actual version id is preferred; otherwise leaving the behavior as observed.Contribution Guidelines
Checklist