From f8d49827a4194316ada5ff89c41bf4a363f9d3a6 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 29 Sep 2021 08:34:09 +0200 Subject: [PATCH] dashboard: retry setting rgw-credentials for some reason, this task can fail in the CI. Adding a retry can help to avoid this failure. Signed-off-by: Guillaume Abrioux --- roles/ceph-dashboard/tasks/configure_dashboard.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index 992989d9f2..826925983f 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -258,6 +258,9 @@ - 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 - name: set the rgw admin resource command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-rgw-api-admin-resource {{ dashboard_rgw_api_admin_resource }}"