When using docker container engine then the systemd unit scripts only
use a dependency on the docker daemon via the After parameter.
But if docker is restarted on a live system then the ceph systemd units
should wait for the docker daemon to be fully restarted.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1846830
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
bd22f1d1ec8c692848aee5337cd0d682a3a058b7)
[Unit]
Description=RBD Target API Service
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=RBD Target Gateway Service
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=TCMU Runner
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=Ceph MDS
After=docker.service
+Requires=docker.service
{% set cpu_limit = ansible_processor_vcpus|int if ceph_mds_docker_cpu_limit|int > ansible_processor_vcpus|int else ceph_mds_docker_cpu_limit|int %}
[Service]
[Unit]
Description=Ceph Manager
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=Ceph Monitor
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
Description=NFS-Ganesha file server
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=Ceph OSD
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=Ceph RBD mirror
After=docker.service
+Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
[Unit]
Description=Ceph RGW
After=docker.service
+Requires=docker.service
{% set cpu_limit = ansible_processor_vcpus|int if ceph_rgw_docker_cpu_limit|int > ansible_processor_vcpus|int else ceph_rgw_docker_cpu_limit|int %}
[Service]