Repository navigation
tentacle: pybind/mgr/mgr_module: isolate logging per mgr module - #67588
Closed
NitzanMordhai wants to merge 3 commits into
Closed
NitzanMordhai wants to merge 3 commits into
NitzanMordhai wants to merge 3 commits into
Conversation
Member
|
jenkins test docs |
Member
|
jenkins test make check |
Member
|
jenkins test api |
After PR ceph#66244, all mgr modules run inside the same Python interpreter. That means they also share the same logging subsystem. Previously, each module attached its handlers to the root logger. In practice, whichever module initialized logging last effectively “owned” the root logger, and log messages from other modules could end up attributed incorrectly. This change scopes logging per module. Each module now registers its handlers on a dedicated logger named after the module itself, with propagate=False to avoid leaking messages into the root logger. Now, the getLogger() default (no args) returns the module's named logger rather than the root logger. This ensures self.log routes correctly. Fixes: https://tracker.ceph.com/issues/74848 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 3e710f7ade56a65143b86c6d5bc2710a6a5d2198)
Fixes: https://tracker.ceph.com/issues/74848 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit ac02bbbed078cf0b7b2f19e79ff7deb2948f1f91)
Previously, using a hard-coded logger name like 'rgw_client' created a top-level logger that bypassed the 'mgr.dashboard' hierarchy. By switching to __name__, we ensure the logger identity follows the package structure (e.g., 'mgr.dashboard.services.rgw_client'). Since propagate=True is enabled, this allows log records to flow upward through the 'mgr' parent loggers, ensuring they are correctly captured, formatted, and attributed to the dashboard module rather than falling back to the root logger. Fixes: https://tracker.ceph.com/issues/74848 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 8c0f0d5)
batrick
force-pushed
the
wip-67327-tentacle
branch
from
April 21, 2026 19:37
580dffa to
8021344
Compare
Member
|
(trivial rebase) |
Member
|
This PR is under test in https://tracker.ceph.com/issues/76190. |
Member
|
This PR has been identified as desirable for v20.2.2. Please make sure this PR:
When you believe it's ready for consideration, please add the https://github.com/ceph/ceph/labels/pdonnell-tentacle-RFA label to this PR. |
Contributor
Author
|
This PR is under test in https://tracker.ceph.com/issues/76319. |
yaarith
marked this pull request as ready for review
May 1, 2026 00:54
yaarith
approved these changes
May 1, 2026
Member
|
This PR has been added to tentacle integration testing by pdonnell started 2026-05-02 02:07. |
Contributor
Author
|
Cherry-picked into #67515, this PR will be closed |
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.
Backport of #67327
Fixes: https://tracker.ceph.com/issues/75641