Repository navigation
doc/radosgw: say where the ops log goes and how to read its socket - #74155
Open
anthonyeleven wants to merge 4 commits into
Open
anthonyeleven wants to merge 4 commits into
anthonyeleven wants to merge 4 commits into
Conversation
anthonyeleven
marked this pull request as ready for review
November 22, 2026 19:10
anthonyeleven
force-pushed
the
wip-40432-rgw-ops-log-socket
branch
from
November 23, 2026 17:11
b3383f7 to
e2f77f0
Compare
Contributor
Author
|
jenkins test make check |
Contributor
Author
|
jenkins test make check arm64 |
Add ERR_RGW_* codes and rgw_http_error_map_key() so connection and lifecycle failures get distinct S3 Code strings instead of UnknownError. Ops log entries (v17) include error_ret for the original errno. Use ceph::from_error_code() for io::Exception paths. Fixes: https://tracker.ceph.com/issues/82075 Signed-off-by: ramin.najarbashi <[email protected]>
Add ops-log.rst (error_code, error_ret, RGW-specific S3 codes). Extend unittest_rgw_http_errors for map_key and log entry v17 round-trip. PendingReleaseNotes bullet for ops log changes. Signed-off-by: ramin.najarbashi <[email protected]>
The ops log page does not say where the entries go or how to read them from the Unix domain socket. rgw::AppMain::init_opslog() adds up to three destinations: a file at rgw_ops_log_file_path, which defaults to /var/log/ceph/ops-log-$cluster-$name.log, a socket at rgw_ops_log_socket_path, and RADOS when rgw_ops_log_rados is set. Each reader that connects to the socket gets "[" and then the JSON entries, separated by ",\n", with no closing "]", so a capture that spans a reconnect is not one JSON document. The file gets one JSON object per line. The file and the socket each drop entries beyond rgw_ops_log_data_backlog. Add a Destinations section and a Reading the Ops Log from a Socket section, and point the introduction at them instead of saying that the destinations are configured for the zone. Fixes: https://tracker.ceph.com/issues/40432 Signed-off-by: Anthony D'Atri <[email protected]> Assisted-by: Claude Opus-5.5
rgw_http_error_map_key() now maps EIO to ERR_INTERNAL_ERROR, so set_req_state_err() answers -EIO with 500 InternalError instead of falling through to UnknownError. The cuObject PUT tests still expected UnknownError for every -EIO failure: a failed or short RDMA read, a filter error, and a storage error. Expect InternalError in those cases. Signed-off-by: Anthony D'Atri <[email protected]> Assisted-by: Claude Opus-5.5
anthonyeleven
force-pushed
the
wip-40432-rgw-ops-log-socket
branch
from
November 27, 2026 05:12
e2f77f0 to
7edf751
Compare
4 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: https://tracker.ceph.com/issues/40432
Depends on #73055; merge after it. This
branch is built on 73055's two commits, which add
doc/radosgw/ops-log.rst, sountil 73055 merges this PR also shows them. Once it merges, two commits
remain: the doc change, and a fix for
unittest_rgw_cuobj_put, which 73055'sEIO mapping breaks on current main. If 73055 picks up that fix itself, I'll
drop it here.
The tracker asks how to read the ops log from its Unix domain socket, for
example to get it into a file with rsyslog. RGW now writes the ops log to a
file by itself, but no page says so.
rgw::AppMain::init_opslog()adds up tothree destinations: a file at
rgw_ops_log_file_path, which defaults to/var/log/ceph/ops-log-$cluster-$name.log, a socket atrgw_ops_log_socket_path, and RADOS whenrgw_ops_log_radosis set. A readerthat connects to the socket gets
[and then the JSON entries, separated by,\n, and the file and the socket each drop entries beyondrgw_ops_log_data_backlog.This adds a Destinations section and a Reading the Ops Log from a Socket
section to the ops log page, and points the introduction at them instead of
saying that the destinations are configured for the zone.
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.
Signed-off-by: Anthony D'Atri [email protected]
Assisted-by: Claude Opus-5.5