Bug #77116
closedmgr daemon enters failed/error state after intentional SIGTERM shutdown
0%
Description
During validation of #69283, the same symptom was observed for mgr daemons.
Reproducer:
1. Switch active mgr:
ceph mgr fail <active-mgr>
2. Stop the standby mgr:
ceph orch daemon stop mgr.<host>.<id>
Observed:
- ceph orch ps reports the daemon in error state
- HEALTH_WARN: CEPHADM_FAILED_DAEMON
- systemd reports:
Result=exit-code
ExecMainStatus=143
Example:
systemctl show <mgr-service> -p Result -p ExecMainStatus
Result=exit-code
ExecMainStatus=143
Expected:
An intentionally stopped mgr daemon should be reported as stopped rather than failed.
Notes:
Mgr appears to terminate with SIGTERM (143), but unlike node-exporter it is not treated as a successful shutdown by systemd/cephadm.
SJ Updated by SHUBHA JAIN 6 months ago
- Subject changed from ceph daemons are going into error state when they are stopped to mgr daemon enters failed/error state after intentional SIGTERM shutdown
- Description updated (diff)
NM Updated by Nitzan Mordechai 6 months ago
- Project changed from Ceph to mgr
- Status changed from New to In Progress
- Assignee set to Nitzan Mordechai
NM Updated by Nitzan Mordechai 6 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 69456
NM Updated by Nitzan Mordechai 6 months ago
before the fix:
nmordech@sockeni02 ~/ceph/build main strace -e trace=signal -p $(cat out/mgr.y.pid) 2>&1 &
[1] 2964053
strace: Process 2963557 attached
⚙ nmordech@sockeni02 ~/ceph/build main kill -TERM $(cat out/mgr.y.pid)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1970689, si_uid=1013} ---
+++ killed by SIGTERM +++
[1] + 2964053 done strace -e trace=signal -p $(cat out/mgr.y.pid) 2>&1
with the fix:
nmordech@sockeni02 ~/ceph/build wip-nitzan-mgr-signals-standby-handle strace -e trace=signal -p $(cat out/mgr.y.pid) 2>&1 &
[1] 2959541
strace: Process 2947445 attached
⚙ nmordech@sockeni02 ~/ceph/build wip-nitzan-mgr-signals-standby-handle kill -TERM $(cat out/mgr.y.pid)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1970689, si_uid=1013} ---
rt_sigreturn({mask=[PIPE]}) = -1 EINTR (Interrupted system call)
+++ exited with 0 +++
[1] + 2959541 done strace -e trace=signal -p $(cat out/mgr.y.pid) 2>&1
YH Updated by Yaarit Hatuka 6 months ago
- Related to Bug #68863: cephadm: node-exporter goes into failed state when stopped added
YH Updated by Yaarit Hatuka 6 months ago
- Backport set to umbrella, tentacle, squid
The fix for the original tracker (https://tracker.ceph.com/issues/68863) needs to be backported; updating the fields of this tracker accordingly.
Nitzan, please validate that we can backport it, and update the Backport field otherwise, thanks.
NM Updated by Nitzan Mordechai 5 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 5 months ago
- Merge Commit set to af060383aa17416a9916104ecb4de449d1291c72
- Fixed In set to v21.3.0-505-gaf060383aa
- Upkeep Timestamp set to 2026-06-28T06:13:41+00:00
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77754: tentacle: mgr daemon enters failed/error state after intentional SIGTERM shutdown added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77755: umbrella: mgr daemon enters failed/error state after intentional SIGTERM shutdown added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77756: squid: mgr daemon enters failed/error state after intentional SIGTERM shutdown added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-06-28T06:13:41+00:00 to 2026-08-27T18:36:07+00:00