]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: don't treat unknown daemon state as error 68290/head
authorLumir Sliva <61183145+lumir-sliva@users.noreply.github.com>
Thu, 9 Apr 2026 16:14:21 +0000 (18:14 +0200)
committerLumir Sliva <61183145+lumir-sliva@users.noreply.github.com>
Wed, 8 Jul 2026 12:48:12 +0000 (14:48 +0200)
commitb4363bb25e2f7c06193b1d7701adb5cc607916f1
treea482e3fe8f20ef3d62fa3e70b6faf88483d48fce
parent24d9c936f053de265b7b6b3436aac0a2acd3e494
mgr/cephadm: don't treat unknown daemon state as error

cephadm ls may transiently report state='unknown' for daemons that are
still starting up. The state mapping in _refresh_host_daemons mapped
'unknown' to DaemonDescriptionStatus.error, which caused
update_failed_daemon_health_check to fire CEPHADM_FAILED_DAEMON for
daemons that were simply mid-startup. The warning clears on the next
refresh once the daemon reaches a real state, but it causes spurious
QA failures across many test suites.

Map 'unknown' to DaemonDescriptionStatus.unknown instead — the enum
value already exists and is handled by to_str() and the dashboard.
get_error_daemons() only checks for .error, so unknown daemons no
longer trigger the health warning.

Signed-off-by: Lumir Sliva <61183145+lumir-sliva@users.noreply.github.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py