]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: do not remove expose_partition container
authorSébastien Han <seb@redhat.com>
Fri, 27 Jul 2018 14:52:19 +0000 (16:52 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Jul 2018 08:38:15 +0000 (10:38 +0200)
The container runs with --rm which means it will be deleted by Docker
when exiting. Also 'docker rm -f' is not idempotent and returns 1 if the
container does not exist.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1609007
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-osd/templates/ceph-osd-run.sh.j2

index 58151e65f96d5a9c772caca69fa43478f7ea4635..f91166b31a190b4ebecb4e0a8e8d95840b60ebbc 100644 (file)
@@ -9,7 +9,6 @@ DOCKER_ENV=""
 {% if disk_list.get('rc') == 0 -%}
 function expose_partitions () {
 DOCKER_ENV=$(docker run --rm --net=host --name expose_partitions_${1} --privileged=true -v /dev/:/dev/ -v /etc/ceph:/etc/ceph:z -e CLUSTER={{ cluster }} -e OSD_DEVICE=/dev/${1} {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} disk_list)
-  docker rm -f expose_partitions_${1}
 }
 {% else -%}
 # NOTE(leseb): maintains backwards compatibility with old ceph-docker Jewel images