]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docker: Retry osd disk prep to workaround race condition
authorDavid Galloway <dgallowa@redhat.com>
Thu, 11 May 2017 20:19:11 +0000 (16:19 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 11 May 2017 20:19:11 +0000 (16:19 -0400)
Fixes: https://github.com/ceph/ceph-ansible/issues/1495
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/ceph-osd/tasks/docker/start_docker_osd.yml

index 3423a94523bbbad4d18115d05ed79027fc6f8f6d..31c82ed6474516dd692960f1ff0fe2aeb459f7d4 100644 (file)
@@ -41,6 +41,9 @@
     - item.1.get("rc", 0) != 0
     - ceph_osd_docker_prepare_env is defined
     - not osd_containerized_deployment_with_kv
+  # https://github.com/ceph/ceph-ansible/issues/1495
+  retries: 5
+  delay: 3
 
 - name: prepare ceph osd disk with kv_store
   shell: |
@@ -66,6 +69,9 @@
     - item.1.get("rc", 0) != 0
     - ceph_osd_docker_prepare_env is defined
     - osd_containerized_deployment_with_kv
+  # https://github.com/ceph/ceph-ansible/issues/1495
+  retries: 5
+  delay: 3
 
 - name: generate ceph osd docker run script
   become: true