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
This commit is contained in:
parent
c6923ea133
commit
2634b5af9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user