Skip to content

Commit

Permalink
Add retries when getting related images
Browse files Browse the repository at this point in the history
I have seen it fail once on a system and it worked on the
second run, so let's try a couple of times at least before
giving up.
  • Loading branch information
mbaldessari committed Aug 10, 2023
1 parent 2bc2534 commit 5d908db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/iib_ci/tasks/fetch-operator-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
oc get packagemanifests -l "catalog=iib-{{ iib }}" --field-selector "metadata.name={{ item }}" \
-o jsonpath="{.items[0].status.channels[?(@.name==\"{{ default_channel }}\")].currentCSVDesc.relatedImages}"
register: related_images_raw
retries: 5
delay: 10
until: related_images_raw is not failed

- name: Set related_images fact
ansible.builtin.set_fact:
Expand Down

0 comments on commit 5d908db

Please sign in to comment.