]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
docker-common: fix container restart on new image
authorSébastien Han <seb@redhat.com>
Thu, 8 Feb 2018 16:35:05 +0000 (17:35 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 14 Feb 2018 01:02:46 +0000 (02:02 +0100)
commit0c6978ab782a8c83919f2b77fd01a5100d013fcb
treed9e8ea374c04ef2528090ed4b1d8d53119060414
parentcf52ba655b198cb89c00ce86d3b00e3035a266e7
docker-common: fix container restart on new image

We now look for any excisting containers, if any we compare their
running image with the latest pulled container image.
For OSDs, we iterate over the list of running OSDs, this handles the
case where the first OSD of the list has been updated (runs the new
image) and not the others.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1526513
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit d47d02a5eb20067b5ae997ab18aeebe40b27cff0)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-docker-common/tasks/fetch_image.yml