From 2634b5af9bddf46a4d56971ddf9d58c7088b566a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 30 Oct 2024 18:57:06 +0100 Subject: [PATCH] Increase timeouts and add retries for UC fetching over HTTP In CI we've spotted multiple occurances of connection timeouts towards Gitea resulting in intermittent failures. Default timeout for get_url module is 10 seconds, which might be not enough for fetching the file. A retry is also being added here as another layer of protection for remote operations to reduce risk of intermittent failures. Change-Id: I42663e8316ef87c12a229517ac0f95f8c6c2c14b --- tasks/repo_install_constraints.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/repo_install_constraints.yml b/tasks/repo_install_constraints.yml index 3c17cdc..d8391fb 100644 --- a/tasks/repo_install_constraints.yml +++ b/tasks/repo_install_constraints.yml @@ -26,7 +26,12 @@ url: "{{ user_requirements_git_url | default('https://releases.openstack.org/constraints/upper/' ~ requirements_git_install_branch | default('master')) }}" dest: "{{ repo_upper_constraints_path }}/{{ 'upper_constraints_' ~ requirements_git_install_branch | default('master') ~ '.txt' }}" mode: "0644" + timeout: 30 when: requirements_git_repo is search('http') + register: _fetch_uc_https + until: _fetch_uc_https is success + retries: 5 + delay: 5 delegate_to: localhost - name: Retrieve local filesystem upper constraints in CI