Bug #77538
closedMgr logs are extremely verbose with list of pods in json output from the Rook module
0%
Description
When the Rook mgr module is enabled in v20.2.2, the logs are extremely verbose.
Every ~15s, the full list of pod in the rook namespace are being dumped to the log in json format (output truncated since each log entry is 250K of JSON):
debug 2026-06-19T12:59:59.162+0000 ffff59f8f700 0 [mgr DEBUG mgr] response body: {"kind":"PodList","apiVersion":"v1","metadata":{"resourceVersion":"635015"},...
This appears to be a side effect from the mgr logging changes in PR #67515, which was included in Ceph v20.2.2.
Two possible solutions:
1. Fix the Rook mgr module to not query for the pod list.
2. Suppress the DEBUG messages by default. (Would Ceph change this default, or how can Rook configure it?)
Claude's analysis:
The logging isn't in the Ceph repo itself - it's coming from the Kubernetes Python client library that gets installed as a dependency. The Kubernetes client library has a rest.py module that logs HTTP responses at DEBUG level.
Based on my analysis, here's what's happening:
Summary
The large "response body" messages in the Ceph mgr log are caused by Ceph commit 0531a9f373c from PR #67515, which was included in Ceph v20.2.2.
Root Cause:
The commit "pybind/mgr/mgr_module: isolate logging per mgr module" added a MgrRootHandler to Python's root logger. This handler captures all logging from libraries that aren't
using module-specific loggers. The Kubernetes Python client library (used by the Rook mgr module) logs HTTP response bodies at DEBUG level via its kubernetes.client.rest logger,
which now gets captured by the root handler and forwarded to the Ceph mgr log.
The logging isn't in the Ceph codebase - it's in the Kubernetes Python client library (kubernetes-client package), specifically in its rest.py module, which logs every API
response body when the log level is DEBUG.
Why this appeared in v20.2.2:
- Before: The Kubernetes client's DEBUG logs went to Python's root logger but weren't captured
- After: The new MgrRootHandler on the root logger now captures these logs and sends them to Ceph's logging system
This is likely contributing to the memory leak issue in https://github.com/rook/rook/issues/17786 because the logs are extremely verbose (228KB JSON blobs every 15 seconds).
Files
TN Updated by Travis Nielsen 6 months ago
- File mgr-a-extract.log mgr-a-extract.log added
Attaching a sample mgr log
MH Updated by Matthew Heler 6 months ago
- Backport set to tentacle, umbrella
- Pull request ID set to 69609
MH Updated by Matthew Heler 6 months ago
- Assignee set to Matthew Heler
NM Updated by Nitzan Mordechai 5 months ago
- Related to Bug #77633: OOM-Kills of standby MGR after Upgrade to rook v1.20.1 / ceph v20.2.2 added
UB Updated by Upkeep Bot 5 months ago
- Status changed from New to Pending Backport
- Merge Commit set to ef7125e0f5705fd21c0e205d42a1447131c85121
- Fixed In set to v21.3.0-680-gef7125e0f5
- Upkeep Timestamp set to 2026-07-02T22:18:44+00:00
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77921: umbrella: Mgr logs are extremely verbose with list of pods in json output from the Rook module added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77922: tentacle: Mgr logs are extremely verbose with list of pods in json output from the Rook module added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) set to backport_processed
NM Updated by Nitzan Mordechai 4 months ago
- Related to Bug #79492: root logger left at NOTSET floods the Ceph log with third-party DEBUG records and OOMs ceph-mgr added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-02T22:18:44+00:00 to 2026-08-27T18:36:41+00:00