Skip to content

tentacle: mgr: don't record a crash dump for NotImplementedError from dispatch_remote - #71041

Merged
batrick merged 4 commits into
ceph:tentaclefrom
NitzanMordhai:wip-79397-tentacle
Aug 25, 2026
Merged

batrick merged 4 commits into
ceph:tentaclefrom
NitzanMordhai:wip-79397-tentacle

Conversation

@NitzanMordhai

Copy link
Copy Markdown
Contributor

flauschi1985 and others added 4 commits August 13, 2026 20:41
…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)
@NitzanMordhai
NitzanMordhai requested review from a team as code owners August 13, 2026 17:41
@NitzanMordhai NitzanMordhai added this to the tentacle milestone Aug 13, 2026
@github-actions github-actions Bot added mgr monitoring orchestrator pybind releng-audit-pass Release engineering: passed backport verification audit. labels Aug 13, 2026
@NitzanMordhai
NitzanMordhai requested a review from batrick August 13, 2026 17:46
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@batrick do you mind to review?

@yuriw

yuriw commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri3-testing-20260819.151734-tentacle.

@bumarcell

bumarcell commented Aug 20, 2026 •

Copy link
Copy Markdown

Hi, just curious; the milestone on this mr is v20.2.4 but that version is already released now 🤔
Thank you 🙏

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
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@batrick
batrick merged commit e3239fa into ceph:tentacle Aug 25, 2026
11 checks passed
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
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.

5 participants