Skip to content

rgw/logging: use trans_id for standard access log record - #67984

Merged
yuvalif merged 1 commit into
ceph:mainfrom
cheese-cakee:wip-75416-fix-log-req-id
Apr 30, 2026
Merged

yuvalif merged 1 commit into
ceph:mainfrom
cheese-cakee:wip-75416-fix-log-req-id

Conversation

@cheese-cakee

@cheese-cakee cheese-cakee commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Related

Checklist

@cheese-cakee
cheese-cakee requested a review from a team as a code owner March 24, 2026 22:49
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

13 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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" to allow the Jenkins jobs to run.

@yuvalif

yuvalif commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

please add proper test in the ceph/s3tests test suite

cheese-cakee added a commit to cheese-cakee/s3-tests that referenced this pull request Mar 25, 2026
Add test_bucket_logging_request_id to verify that the RequestID field
in the standard access log matches the x-amz-request-id returned in
the S3 PUT object response.

Related: ceph/ceph#67984, tracker.ceph.com/issues/75416
Signed-off-by: cheese-cakee <[email protected]>
@cheese-cakee

Copy link
Copy Markdown
Contributor Author

Done. Test added in ceph/s3-tests#729

@yuvalif

yuvalif commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Done. Test added in ceph/s3-tests#729

thanks! will test and let you know

@cheese-cakee

Copy link
Copy Markdown
Contributor Author

Done. Test added in ceph/s3-tests#729

thanks! will test and let you know

Thankyou!

In standard mode, the access log record was using s->req_id for the
request ID field. The correct field is s->trans_id, which matches the
x-amz-request-id returned in the S3 response. This is consistent with
how all other RGW response code uses trans_id.

Fixes: http://tracker.ceph.com/issues/75416
Signed-off-by: cheese-cakee <[email protected]>
@cheese-cakee
cheese-cakee force-pushed the wip-75416-fix-log-req-id branch from e140af2 to 127f8ad Compare April 21, 2026 20:54
@yuvalif
yuvalif self-requested a review April 23, 2026 05:57
@anrao19

anrao19 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Pr testing completed. Tacker approved by @ivancich. More details : https://tracker.ceph.com/issues/76230
@cheese-cakee, if no further testing needed, pr can be merged

@yuvalif
yuvalif merged commit 55ff6d0 into ceph:main Apr 30, 2026
6 checks passed
yuvalif pushed a commit to ceph/s3-tests that referenced this pull request May 11, 2026
Add test_bucket_logging_request_id to verify that the RequestID field
in the standard access log matches the x-amz-request-id returned in
the S3 PUT object response.

Related: ceph/ceph#67984, tracker.ceph.com/issues/75416
Signed-off-by: cheese-cakee <[email protected]>
(cherry picked from commit 3b99093)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants