]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: retry setting rgw-credentials
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Sep 2021 06:34:09 +0000 (08:34 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 30 Sep 2021 16:30:38 +0000 (18:30 +0200)
for some reason, this task can fail in the CI.
Adding a retry can help to avoid this failure.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f8d49827a4194316ada5ff89c41bf4a363f9d3a6)

roles/ceph-dashboard/tasks/configure_dashboard.yml

index 6953a9ebcabd6542f89e0412d3e103afd214c794..ae3ce134d283efd21bc264a7ed774e63689bb3ea 100644 (file)
         - name: set the rgw credentials
           command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-rgw-credentials"
           changed_when: false
+          register: result
+          until: result is succeeded
+          retries: 5
       rescue:
         - name: create radosgw system user
           radosgw_user: