Repository navigation
mgr/cephadm: don't treat unknown daemon state as error - #68290
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
14 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
ok-to-test |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
de2cbd3 to
63e1928
Compare
|
@rkachach you gave this an ok-to-test a while back but it never got a full review. Mind taking a look when you get a chance? Rebased on current main. Both red checks are infra (dashboard e2e died in Node setup, arm64 make check failed while x86 passed on the same tree), not the change. |
|
ok-to-test |
|
jenkins test make check arm64 |
|
ok to test |
|
jenkins test make check |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
@lumir-sliva can you plz force-push? docs tests seem stuck |
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 <[email protected]>
63e1928 to
b4363bb
Compare
Yeah, I rebased and force pushed. No conflicts. |
|
Thanks @lumir-sliva I'll add the PR to Teuthology testing. |
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
cephadm lscan transiently reportstate='unknown'for daemons thatare still starting up. The state mapping in
_refresh_host_daemonsmaps
'unknown'toDaemonDescriptionStatus.error, which firesCEPHADM_FAILED_DAEMONfor daemons that are just mid-startup. Thewarning clears on the next refresh, but causes spurious QA failures —
this ticket has been open since April 2024 with 37 failing job reports.
DaemonDescriptionStatus.unknownalready exists in the enum and ishandled by
to_str()and the dashboard. This PR maps'unknown'to.unknowninstead of.error.get_error_daemons()only checks== .error, so unknown daemons no longer trigger the health warning.All other consumers of
.errorare unaffected —serve.pystopscounting unknown daemons as errors during duplicate OSD removal and
no longer skips them during config pushes (both are safer behaviors),
and all remaining
.errorchecks are explicit sets rather thancephadm lsmappings.Fixes: https://tracker.ceph.com/issues/65728
Checklist