From 0bb3edcabb1098c016c3d3b849518b2490c980f9 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 18 Apr 2023 15:59:09 +0100 Subject: [PATCH] Add retries for get_url and package tasks Occasionally we see connection issues in CI. Change-Id: I93cc6793cf23fd21462cec6a4deb2ea35d36da21 --- ansible/roles/virtualbmc-daemon/tasks/main.yml | 3 +++ playbooks/tenks-deploy-teardown/pre.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ansible/roles/virtualbmc-daemon/tasks/main.yml b/ansible/roles/virtualbmc-daemon/tasks/main.yml index 0a42702..0ec92d2 100644 --- a/ansible/roles/virtualbmc-daemon/tasks/main.yml +++ b/ansible/roles/virtualbmc-daemon/tasks/main.yml @@ -37,6 +37,9 @@ url: "{{ vbmcd_python_upper_constraints_url }}" dest: "{{ u_c_file.path }}" mode: "0644" + register: result + until: result is success + retries: 3 # NOTE(yoctozepto): It is preferable to use the libvirt python binding that # is delivered with the distribution as it is guaranteed to work with the diff --git a/playbooks/tenks-deploy-teardown/pre.yml b/playbooks/tenks-deploy-teardown/pre.yml index 7fcbfad..ac882ef 100644 --- a/playbooks/tenks-deploy-teardown/pre.yml +++ b/playbooks/tenks-deploy-teardown/pre.yml @@ -25,6 +25,9 @@ - python3 - python3-pip - python3-setuptools + register: result + until: result is success + retries: 3 - name: Create venv for tenks and upgrade pip pip: