]> git-server-git.apps.pok.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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 31 Jul 2018 08:06:25 +0000 (08:06 +0000)
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.

(641f141c0fd070cdf982401f4529da41614d237e should have been backported to
avoid conflict merge but it's too many changes to be backported.)

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1609007
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 2ca8c519066555e06a261d5dee3fb46ce5daad0b)

roles/ceph-osd/templates/ceph-osd-run.sh.j2

index fefce935073ebe012212f9a3f7c507a95c96b6a4..ba86b30d8aeb46c9799d6e2e8038edb72bef7614 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 -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