Skip to content

cephadm: add command to send signals to daemons - #63962

Merged
adk3798 merged 1 commit into
ceph:mainfrom
adk3798:cephadm-signal-containerized-daemon
Sep 18, 2025
Merged

adk3798 merged 1 commit into
ceph:mainfrom
adk3798:cephadm-signal-containerized-daemon

Conversation

@adk3798

@adk3798 adk3798 commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

This command figures out the container id for the
daemon based on the given name and then uses
a docker/podman to send that signal to the container

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

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a few simplifications and clean ups I think would really help the maintainability of this code

Comment thread src/cephadm/cephadm.py Resolved
Comment thread src/cephadm/cephadm.py Resolved
Comment thread src/cephadm/cephadmlib/signals.py Resolved
Comment thread src/cephadm/cephadmlib/signals.py Resolved
Comment thread src/cephadm/cephadmlib/signals.py Resolved

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems worth doing but I wanted to point out that we do have a ceph tell foo.bar raise X tell command for every daemon.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

This seems worth doing but I wanted to point out that we do have a ceph tell foo.bar raise X tell command for every daemon.

That's only going to work for core ceph daemons (mgr, mon, etc..) right? This command will be used for signalling NFS Gansha, and perhaps SMB services down the road. Unless there's some ceph magic to make the tell commands work for these daemons that I would really like to hear about :-)

@adk3798
adk3798 force-pushed the cephadm-signal-containerized-daemon branch from 131cf2d to 2ad081c Compare September 16, 2025 23:09
@adk3798
adk3798 force-pushed the cephadm-signal-containerized-daemon branch 2 times, most recently from eb8daf8 to a4076b8 Compare September 16, 2025 23:16

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

Comment thread src/cephadm/cephadmlib/signals.py Resolved
This command figures out the container id for the
daemon based on the given name and then uses
a docker/podman to send that signal to the container

Signed-off-by: Adam King <[email protected]>
@adk3798
adk3798 force-pushed the cephadm-signal-containerized-daemon branch from a4076b8 to d3d3d79 Compare September 17, 2025 14:18
@phlogistonjohn

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@adk3798

adk3798 commented Sep 18, 2025

Copy link
Copy Markdown
Contributor Author

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