From: Guillaume Abrioux Date: Mon, 25 Mar 2019 14:04:50 +0000 (+0100) Subject: rgw: add a retry on pool related tasks X-Git-Tag: v4.0.0rc1~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91346245789304b3cb65f4c8c3524381fc385d93;p=ceph-ansible.git rgw: add a retry on pool related tasks 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 --- diff --git a/roles/ceph-rgw/tasks/main.yml b/roles/ceph-rgw/tasks/main.yml index f3941b126..052fa1e10 100644 --- a/roles/ceph-rgw/tasks/main.yml +++ b/roles/ceph-rgw/tasks/main.yml @@ -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