Bug #68536
closedcephadm: cephadm does not handle "systemctl start" failures during deployment properly
0%
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.
AK Updated by Adam King about 2 years ago
- Backport set to squid
- Pull request ID set to 60303
AK Updated by Adam King about 2 years ago
- Status changed from In Progress to Pending Backport
UB Updated by Upkeep Bot about 2 years ago
- 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
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot over 1 year ago
- 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
- 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
- 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
- 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
- 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