]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: add a retry on pool related tasks
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 25 Mar 2019 14:04:50 +0000 (15:04 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 25 Mar 2019 20:02:56 +0000 (16:02 -0400)
sometimes those tasks might fail because of a timeout.
I've been facing this several times in the CI, adding this retry might
help and won't hurt in any case.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-rgw/tasks/main.yml

index f3941b126b422d2f85c0ae3a5580c375b2080eeb..052fa1e1047acf9cdc993f4e45f564ea4010aa28 100644 (file)
@@ -31,6 +31,8 @@
       changed_when: false
       with_dict: "{{ rgw_create_pools }}"
       delegate_to: "{{ groups[mon_group_name][0] }}"
+      register: result
+      until: result is succeeded
       run_once: true
 
     - name: customize pool size
@@ -39,5 +41,7 @@
       delegate_to: "{{ groups[mon_group_name][0] }}"
       changed_when: false
       run_once: true
+      register: result
+      until: result is succeeded
       when:
         - item.size | default(osd_pool_default_size) != ceph_osd_pool_default_size