Skip to content
Snippets Groups Projects
Unverified Commit 75ad868c authored by Hans Feldt's avatar Hans Feldt Committed by GitHub
Browse files

crio: harden downloads with retry (#6374)

CI job 624031102 failed with:

fatal: [ubuntu1804]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_18.04/Release.key

: Request failed: <urlopen error [Errno -3] Temporary failure in name resolution>"}

Assuming its a temporary problem it should get more robust with a
couple of retries like in other roles.

Co-authored-by: default avatarHans Feldt <hafe@users.noreply.github.com>
parent 9433fe46
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
url: "https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/{{ crio_kubic_debian_repo_name }}/Release.key" url: "https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/{{ crio_kubic_debian_repo_name }}/Release.key"
state: present state: present
when: crio_kubic_debian_repo_name is defined when: crio_kubic_debian_repo_name is defined
register: apt_key_download
until: apt_key_download is succeeded
retries: 4
delay: "{{ retry_stagger | d(3) }}"
- name: Add CRI-O kubic repo - name: Add CRI-O kubic repo
apt_repository: apt_repository:
......
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
when: not is_ostree when: not is_ostree
with_items: "{{ crio_packages }}" with_items: "{{ crio_packages }}"
notify: restart crio notify: restart crio
register: package_install
until: package_install is succeeded
retries: 4
delay: "{{ retry_stagger | d(3) }}"
- name: Gather the rpm package facts - name: Gather the rpm package facts
package_facts: package_facts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment