Project

General

Profile

Actions

Bug #48891

closed

cephadm does not set required dependencies in systemd

Added by Michael Wodniok over 3 years ago. Updated over 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

cephadm does not set the dependency list correctly. This leads to race conditions. Example:

In our environment we use docker as container-provider. A service (general problem, not limited to specific type) created by cephadm does not depend on the management daemon. This leads to the output in journald-mgr-leftovers.log.

Looking into the state of the docker daemon shows that it was not running at that time. It seemed like ceph.target was started before docker, but the scripts of the daemons require in our case docker to run.

A workaround is to add docker.service to the dependency list of each service using `systemctl edit ceph-<fsid>@<service-id>.service` using following content:

[Unit]
After=docker.service
Requires=docker.service

After that, ceph came up successfully at every reboot done since then. As cephadm officially supports podman, i'm not able to provide a PR (simply not knowing the structure of podman). The line where to add the service would be [[https://github.com/ceph/ceph/blob/892c51dd3c5f7108e766bea30cd5e0d801b0abd3/src/cephadm/cephadm#L2722]].


Files

journald-mgr-leftovers.log (1011 Bytes) journald-mgr-leftovers.log Michael Wodniok, 01/15/2021 05:44 AM

Related issues 1 (0 open1 closed)

Is duplicate of Orchestrator - Bug #46745: cephadm does not set systemd dependencies when using dockerResolved

Actions
Actions #1

Updated by Sebastian Wagner over 3 years ago

  • Is duplicate of Bug #46745: cephadm does not set systemd dependencies when using docker added
Actions #2

Updated by Sebastian Wagner over 3 years ago

  • Status changed from New to Duplicate

Thank you very much for reporting this!

Actions #3

Updated by Michael Wodniok over 3 years ago

Sebastian Wagner wrote:

Thank you very much for reporting this!

Oh. I'm sorry i've reported this as i did not find the bug (which uses quite similar title and content) using the integrated search and other interfaces.

Actions

Also available in: Atom PDF