]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-handler: change osd container check
authorSébastien Han <seb@redhat.com>
Tue, 2 Oct 2018 15:37:06 +0000 (17:37 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Oct 2018 20:08:41 +0000 (16:08 -0400)
Now that the container is named ceph-osd@<id> looking for something that
contains a host is not necessary. This is also backward compatible as it
will continue to match container names with hostname in them.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-handler/tasks/check_running_containers.yml

index 111d112745cfa6620ecd31aad2e7cee6a6bce64d..15acc5df293afa1b0c2d0f3de1b34a224f670a1e 100644 (file)
@@ -9,7 +9,7 @@
     - inventory_hostname in groups.get(mon_group_name, [])
 
 - name: check for an osd container
-  command: "docker ps -q --filter='name=ceph-osd-{{ ansible_hostname }}'"
+  command: "docker ps -q --filter='name=ceph-osd'"
   register: ceph_osd_container_stat
   changed_when: false
   failed_when: false