Commit 56a7537f authored by Dimitri Savineau's avatar Dimitri Savineau Committed by Guillaume Abrioux
Browse files

ceph-osd: update systemd unit script

The systemd unit script wasn't updated with the new container name
format (without the hostname).
We now have the same start/stop docker commands for all scenarios.
During the device to id OSD migration we need to be sure that the
old container with the hostname are stopped.


Signed-off-by: default avatarDimitri Savineau <>
parent c409d6e9
......@@ -5,19 +5,10 @@ After=docker.service
{% if osd_scenario == 'lvm' -%}
ExecStartPre=-/usr/bin/docker stop ceph-osd-%i
ExecStartPre=-/usr/bin/docker rm -f ceph-osd-%i
{% else %}
ExecStartPre=-/usr/bin/docker stop ceph-osd-{{ ansible_hostname }}-%i
ExecStartPre=-/usr/bin/docker rm -f ceph-osd-{{ ansible_hostname }}-%i
{% endif -%}
ExecStart={{ ceph_osd_docker_run_script_path }}/ %i
{% if osd_scenario == 'lvm' -%}
ExecStop=-/usr/bin/docker stop ceph-osd-%i
{% else %}
ExecStop=-/usr/bin/docker stop ceph-osd-{{ ansible_hostname }}-%i
{% endif -%}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment