]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: report intentionally stopped daemons as stopped 69283/head
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Tue, 9 Jun 2026 13:34:01 +0000 (19:04 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 11 Jun 2026 08:07:10 +0000 (13:37 +0530)
commit391383dae2efb70b1eb346d1073db0ecec1250e2
treea71ed0f5cf6c0c1e77de2f2686f33238e4d9ec58
parentfbb7a5c9d6221bbd5be2c970c33caa035c78e280
cephadm: report intentionally stopped daemons as stopped

node-exporter exits with status 143 when terminated via SIGTERM.
Systemd treats this as a failure by default, causing cephadm to
report an intentionally stopped daemon as being in an error state.

Allow daemon forms to provide daemon-specific success exit status
codes and generate a corresponding systemd SuccessExitStatus
drop-in when required.

For node-exporter, configure exit status 143 as successful so
intentional stops are reported as stopped rather than failed.

Fixes: https://tracker.ceph.com/issues/68863
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/cephadm/cephadm.py
src/cephadm/cephadmlib/container_types.py
src/cephadm/cephadmlib/daemons/monitoring.py
src/cephadm/cephadmlib/systemd_unit.py
src/cephadm/tests/test_unit_file.py