From e929c0e8410c81e9eb59619d5c49aefff8e93255 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Wed, 29 Nov 2023 18:12:19 +0000 Subject: [PATCH] ci flakiness - add retries when fetching registry image from quay.io This change should mitigate: ``` Trying to pull quay.io/software-factory/registry:2... Error: parsing image configuration: fetching blob: received unexpected HTTP status: 502 Bad Gateway ``` Change-Id: Ia5d54234c176f54d4c3c7fe6df60b591729ca69e --- roles/setup-local-registry/tasks/main.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/setup-local-registry/tasks/main.yaml b/roles/setup-local-registry/tasks/main.yaml index ff5b0bb9..c0675816 100644 --- a/roles/setup-local-registry/tasks/main.yaml +++ b/roles/setup-local-registry/tasks/main.yaml @@ -22,6 +22,14 @@ command: podman volume rm registry # quay.io/software-factory/registry:2 is a copy of https://hub.docker.com/_/registry +- name: Fetch the podman registry container image + command: podman pull quay.io/software-factory/registry:2 + register: podman_fetch + retries: 12 + delay: 10 + until: + - podman_fetch.rc == 0 + - name: Start the podman registry container command: | podman container run -dt -p 5000:5000 --name registry \