Repository navigation
tasks/ceph_manager: reset systemd failed state before reviving osd on… - #69871
Merged
SrinivasaBharath merged 1 commit intoSep 2, 2026
Conversation
Contributor
Author
|
run test with that fix: https://pulpito-ng.ceph.com/runs/nmordech-2026-07-01_05:35:33-upgrade:tentacle-x:stress-split-main-distro-default-trial All failures are not related |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the teuthology CephManager.revive_osd() path used in cephadm-based QA runs to clear systemd’s “failed” state on an OSD unit before attempting to restart the OSD, addressing cases where systemd blocks restarts after an OSD kill (tracker #75570).
Changes:
- Add a cephadm-specific
systemctl reset-failedcall for the target OSD unit prior torestart()when OSD thrashing is active. - Add logging and inline comments explaining why the reset is needed.
| @@ -3234,6 +3234,16 @@ def revive_osd(self, osd, timeout=360, skip_admin_check=False): | |||
| mount_osd_data(self.ctx, remote, self.cluster, str(osd)) | |||
| self.make_admin_daemon_dir(remote) | |||
| self.ctx.daemons.get_daemon('osd', osd, self.cluster).reset() | |||
| if self.cephadm and any(isinstance(t, OSDThrash) for t in self.ctx[self.cluster].thrashers): | |||
Comment on lines
+3238
to
+3241
| # When thrashing osds during upgrade test, in some point we can | ||
| # see the osd service in failed state, which will prevent the | ||
| # osd to be restarted. So we need to reset the failed state before | ||
| # restarting the osd service. |
Contributor
Author
There was a problem hiding this comment.
me too :) fixed
… cephadm When an OSD is killed on a cephadm cluster, systemd can mark the service as failed, preventing it from being restarted. Call reset-failed on the osd service before restarting it in revive_osd Fixes: https://tracker.ceph.com/issues/75570 Signed-off-by: Nitzan Mordechai <[email protected]>
NitzanMordhai
force-pushed
the
wip-nitzan-thrasher-revive-with-resetting-failed
branch
from
July 2, 2026 05:06
8a62f77 to
d0a1747
Compare
rzarzynski
approved these changes
Jul 2, 2026
Member
|
Wasn't getting picked up since it lacked the "core" label. |
Contributor
|
This PR has been added to wip-bharath7-testing-20260824.015917-main. |
Contributor
Author
Contributor
|
jenkins test make check |
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.
… cephadm
When an OSD is killed on a cephadm cluster, systemd can mark the service as failed, preventing it from being restarted. Call reset-failed on the osd service before restarting it in revive_osd
Fixes: https://tracker.ceph.com/issues/75570
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.