Skip to content

doc/radosgw: say where the ops log goes and how to read its socket - #74155

Open
anthonyeleven wants to merge 4 commits into
ceph:mainfrom
anthonyeleven:wip-40432-rgw-ops-log-socket
Open

anthonyeleven wants to merge 4 commits into
ceph:mainfrom
anthonyeleven:wip-40432-rgw-ops-log-socket

Conversation

@anthonyeleven

@anthonyeleven anthonyeleven commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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, so
until 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's
EIO 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 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. A reader
that connects to the socket gets [ and then the JSON entries, separated by
,\n, and the file and the socket each drop entries beyond
rgw_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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You 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

@anthonyeleven
anthonyeleven marked this pull request as ready for review November 22, 2026 19:10
@anthonyeleven
anthonyeleven requested review from a team as code owners November 22, 2026 19:10
@anthonyeleven
anthonyeleven force-pushed the wip-40432-rgw-ops-log-socket branch from b3383f7 to e2f77f0 Compare November 23, 2026 17:11
@anthonyeleven

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

RaminNietzsche and others added 4 commits November 26, 2026 23:54
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
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.

2 participants