Project

General

Profile

Actions

Bug #77116

closed
SJ NM

mgr daemon enters failed/error state after intentional SIGTERM shutdown

Bug #77116: mgr daemon enters failed/error state after intentional SIGTERM shutdown

Added by SHUBHA JAIN 6 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-505-gaf060383aa
Released In:
Upkeep Timestamp:
2026-08-27T18:36:07+00:00

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.


Related issues 4 (0 open — 4 closed)

Related to Orchestrator - Bug #68863: cephadm: node-exporter goes into failed state when stoppedBackportingAdam King

Actions
Copied to mgr - Backport #77754: tentacle: mgr daemon enters failed/error state after intentional SIGTERM shutdownResolvedNitzan Mordechai

Actions
Copied to mgr - Backport #77755: umbrella: mgr daemon enters failed/error state after intentional SIGTERM shutdownResolvedNitzan Mordechai

Actions
Copied to mgr - Backport #77756: squid: mgr daemon enters failed/error state after intentional SIGTERM shutdownResolvedNitzan Mordechai

Actions

SJ Updated by SHUBHA JAIN 6 months ago Actions #1

  • 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 Actions #2

  • 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 Actions #3

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 69456

NM Updated by Nitzan Mordechai 6 months ago Actions #4

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 Actions #5

  • Related to Bug #68863: cephadm: node-exporter goes into failed state when stopped added

YH Updated by Yaarit Hatuka 6 months ago Actions #6

  • 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 Actions #7

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 5 months ago Actions #8

  • 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 Actions #9

  • Copied to Backport #77754: tentacle: mgr daemon enters failed/error state after intentional SIGTERM shutdown added

UB Updated by Upkeep Bot 5 months ago Actions #10

  • Copied to Backport #77755: umbrella: mgr daemon enters failed/error state after intentional SIGTERM shutdown added

UB Updated by Upkeep Bot 5 months ago Actions #11

  • Copied to Backport #77756: squid: mgr daemon enters failed/error state after intentional SIGTERM shutdown added

UB Updated by Upkeep Bot 5 months ago Actions #12

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #13

  • 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
Actions

Also available in: PDF Atom