Repository navigation
tentacle: mgr: don't record a crash dump for NotImplementedError from dispatch_remote - #71041
Merged
Merged
Conversation
…remote NotImplementedError is how an orchestrator module signals it doesn't implement an optional method not a fault. But dispatch_remote() asked for a crash dump on any exception the callee raised, so following that convention still produced a crash record. On a Rook-managed cluster this bit hard: mgr/prometheus calls the cephadm-only node_proxy_fullreport() every scrape, Rook doesn't implement it, and each scrape left a crash record behind about 5,760 a day. RECENT_MGR_MODULE_CRASH gets raised within minutes and never clears, so HEALTH_OK becomes unreachable. Skip the crash dump for NotImplementedError; the exception itself is still raised and returned to the caller as before. handle_pyerror() already took a crash_dump parameter for this but never honored it now it does, with no effect on any other caller. Fixes: https://tracker.ceph.com/issues/79106 Signed-off-by: Sebastian Marschke <[email protected]> Signed-off-by: Nitzan Mordechai <[email protected]> Assisted by: IBM Bob (cherry picked from commit 18c4e08)
Even after the crash dump was suppressed, BaseMgrModule.cc still logged "Remote method threw exception: ..." at error level for every NotImplementedError. Since that's not actually an error, log it at debug level instead same crash_dump flag, threaded up from dispatch_remote() through to the log call. Fixes: https://tracker.ceph.com/issues/79106 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 42c4dfb)
get_hardware_metrics() only checked orch_is_available(), which just means some orchestrator is present — not that it implements node-proxy. On Rook that's true but node_proxy_fullreport() isn't implemented, so every scrape hit it anyway and relied entirely on the mgr-side fix to avoid being reported as a crash. Check the orchestrator backend directly instead, same as the existing _select_orchestrator() == "cephadm" check in orchestrator/module.py. Related: https://tracker.ceph.com/issues/79106 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 543c949)
Add a self-test that exercises the fix directly: call a method via self.remote() that raises NotImplementedError and confirm it leaves crash_dir untouched, then do the same with a genuine RuntimeError as a control and confirm that one *does* produce (and clean up) a real crash dump. Wired into orchestrator's existing self_test(), which already runs live inside ceph-mgr and is exercised by qa/tasks/mgr/test_module_selftest.py::test_orchestrator - no new test file needed. Related: https://tracker.ceph.com/issues/79106 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 3f3079f)
Contributor
Author
|
@batrick do you mind to review? |
batrick
approved these changes
Aug 13, 2026
Contributor
|
This PR has been added to wip-yuri3-testing-20260819.151734-tentacle. |
|
Hi, just curious; the milestone on this mr is v20.2.4 but that version is already released now 🤔 Update: now milestone shows v20.2.5 👍 |
skrumbach
added a commit
to skrumbach/home-ops
that referenced
this pull request
Aug 22, 2026
* fix(rook-ceph): disable rook mgr module to stop crash storm The prometheus mgr module unconditionally calls node_proxy_fullreport() on every scrape, which the rook orchestrator backend doesn't implement. The resulting NotImplementedError is recorded as a crash at the C++ dispatch boundary every 15s, which races the crash module's unlocked do_post() into HEALTH_ERR. Disabling the rook module stops orch dispatch entirely, removing the crash generator. This repo doesn't use ceph orch (docs/ceph/toolbox.md already documents it as inapplicable here), so the module isn't needed. Upstream: rook/rook#18124, ceph/ceph#71041, ceph/ceph#71180 (all open, unfixed even on ceph main as of 2026-08-22). * no-mistakes(document): docs(rook-ceph): log rook mgr module disable in ceph changelog
Contributor
Author
fivetime
added a commit
to fivetime/rook
that referenced
this pull request
Sep 11, 2026
Rook force-disables the rook mgr module on Ceph v20.2.2 through v20.2.4. For v20.2.3 and v20.2.4 the reason is rook#18124: mgr/prometheus calls node_proxy_fullreport() on every scrape, the rook orchestrator raises NotImplementedError and a mgr module crash is filed every few seconds. The ghcr.io/fivetime/ceph overlay carries the Python half of ceph/ceph#71041, which stops that call. On this cluster the rook, nfs and prometheus modules ran together for 8.7 hours on that image with no mgr crash. The nfs module needs an orchestrator backend, and Manila's NFS driver (cephfs_nfs_cluster_id) needs the nfs module, so the force-disable also broke RWX provisioning for tenant clusters every time the operator reconciled the mgr. Skip the force-disable on v20.2.3 and v20.2.4 when the CephCluster uses the fivetime image, by tag or digest. v20.2.2 (memory leak, rook#17786) and every other image keep the upstream behaviour, so rolling the ceph image back to upstream brings the force-disable back. Signed-off-by: Simon Zhou <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VeBUMtzTkkBE54JEyVKiVf
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 tracker: https://tracker.ceph.com/issues/79397
backport of #70967
parent tracker: https://tracker.ceph.com/issues/79106
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh