Project

General

Profile

Actions

Bug #68536

closed
AK AK

cephadm: cephadm does not handle "systemctl start" failures during deployment properly

Bug #68536: cephadm: cephadm does not handle "systemctl start" failures during deployment properly

Added by Adam King about 2 years ago. Updated 3 months ago.

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

0%

Source:
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-6136-g186b38e636
Released In:
v20.2.0~1606
Upkeep Timestamp:
2026-08-27T18:18:00+00:00

Description

The intended outcome if a daemon fails to start up properly is hat we see the daemon is failed when refreshing the daemon metadata on its host and report that to the users as a health condition. In most cases this is what happens as cephadm will start the systemd unit and return, even if the daemon will end up failing to start, and then see at a later time that it has failed. However, if the "systemctl start" command itself fails this is not what happens. Cephadm is assuming if the deploy command fails daemon it's deploying is not actually on the host (which is the case if it fails anywhere else, e.g. if we find a port conflict) and will clean up the daemon's keyring and not trigger a refresh of the host's daemon metadata. However, in the specific case of the "systemctl start" command failing, the daemon is actually present on the host in a failed state rather than not being present at all. In this case we actually need to pretend the deploy command succeeded so cephadm will know to refresh the daemon metadata on the host to not risk deploying another copy of the failed daemon and not clean up the daemon's keyring.


Related issues 1 (1 open — 0 closed)

Copied to Orchestrator - Backport #69006: squid: cephadm: cephadm does not handle "systemctl start" failures during deployment properlyFix Under ReviewAdam King

Actions

AK Updated by Adam King about 2 years ago Actions #1

  • Backport set to squid
  • Pull request ID set to 60303

AK Updated by Adam King about 2 years ago Actions #2

  • Status changed from In Progress to Pending Backport

UB Updated by Upkeep Bot about 2 years ago Actions #3

  • Copied to Backport #69006: squid: cephadm: cephadm does not handle "systemctl start" failures during deployment properly added

UB Updated by Upkeep Bot about 2 years ago Actions #4

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #5

  • Merge Commit set to 186b38e636350a24a2bd031bbc6a9891dd96dc47
  • Fixed In set to v19.3.0-6136-g186b38e6363
  • Upkeep Timestamp set to 2025-07-08T18:34:42+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #6

  • Fixed In changed from v19.3.0-6136-g186b38e6363 to v19.3.0-6136-g186b38e63635
  • Upkeep Timestamp changed from 2025-07-08T18:34:42+00:00 to 2025-07-14T15:44:45+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Fixed In changed from v19.3.0-6136-g186b38e63635 to v19.3.0-6136-g186b38e636
  • Upkeep Timestamp changed from 2025-07-14T15:44:45+00:00 to 2025-07-14T21:09:25+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #8

  • Released In set to v20.2.0~1606
  • Upkeep Timestamp changed from 2025-07-14T21:09:25+00:00 to 2025-11-01T01:01:55+00:00

UB Updated by Upkeep Bot 3 months ago Actions #9

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:01:55+00:00 to 2026-08-27T18:18:00+00:00
Actions

Also available in: PDF Atom