docker: Retry osd disk prep to workaround race condition

Fixes: https://github.com/ceph/ceph-ansible/issues/1495

Signed-off-by: David Galloway <dgallowa@redhat.com>
pull/1531/head
David Galloway 2017-05-11 16:19:11 -04:00
parent bd3ae1daa9
commit 196fa7ef39
1 changed files with 6 additions and 0 deletions

View 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