Skip to content

mgr/cephadm: suppress CEPHADM_FAILED_DAEMON for services being removed - #69950

Merged
phlogistonjohn merged 1 commit into
ceph:mainfrom
avanthakkar:fix-failed-health-daemon-check
Jul 10, 2026
Merged

phlogistonjohn merged 1 commit into
ceph:mainfrom
avanthakkar:fix-failed-health-daemon-check

Conversation

@avanthakkar

Copy link
Copy Markdown
Contributor

When a service is deleted, a daemon belonging to it may transiently enter a failed state before orphan cleanup removes it. This happens when there is a race between dependency-changed REDEPLOY and a service removal going on paralelly.

Skip daemons in update_failed_daemon_health_check whose service is already in spec_deleted.

Fixes: https://tracker.ceph.com/issues/77944

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@avanthakkar

Copy link
Copy Markdown
Contributor Author

jenkins test api

@avanthakkar

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@avanthakkar

Copy link
Copy Markdown
Contributor Author

jenkins test api

@avanthakkar

avanthakkar commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor Author

@avanthakkar

Copy link
Copy Markdown
Contributor Author

I've added an extra guard to the spec_deleted check: we now only skip the health warning for service types in REQUIRES_SERVICE_ID (smb, rgw, nfs, mds, etc.). Generic types like osd, mon, mgr always generate the health alert regardless and suppressing that could mask real failures so better to avoid. PTAL @adk3798

@adk3798

adk3798 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@avanthakkar the PR looks good, but just a note the make check failure is related. Just a mypy check

cephadm/__init__.py:1: note: In module imported here:
cephadm/module.py: note: In member "update_failed_daemon_health_check" of class "CephadmOrchestrator":
cephadm/module.py:1190: error: Argument 1 to "daemon_type_to_service" has incompatible type "str | None"; expected "str"  [arg-type]

I think you just have to do a assert dd.daemon_type is not None before using it so mypy doesn't complain.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Teuthology Run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_21:50:32-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial
(6) failures out of 64 tests.
4 well-known flakes for ctdb_status
1 failure to connect to AD
1 failure to connect to share

Teuthology Re-run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_23:10:58-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial
3 failures out of 6 re-run tests.
All repeat failures were the well-known flakes for ctdb_status

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Please fix make check errors and I will be willing to merge w/o a repeat teuthology run assuming the change is as Adam describes.

@adk3798

adk3798 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Teuthology Run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_21:50:32-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial (6) failures out of 64 tests. 4 well-known flakes for ctdb_status 1 failure to connect to AD 1 failure to connect to share

Teuthology Re-run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_23:10:58-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial 3 failures out of 6 re-run tests. All repeat failures were the well-known flakes for ctdb_status

these ctdb_node_gone_state issues are known, right? If so, run seems good. I think the SMB tests would catch any general issues here.

When a service is deleted, a daemon belonging to it may transiently
enter a failed state before orphan cleanup removes it. This happens
when there is a race between dependency-changed REDEPLOY and a
service removal going on paralelly.

Skip daemons in update_failed_daemon_health_check whose service is
already in spec_deleted.

Fixes: https://tracker.ceph.com/issues/77944
Signed-off-by: Avan Thakkar <[email protected]>
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.

3 participants