Add retry logic to assisted-installer wait_for_hosts - #9872
Merged
agonzalezrh merged 1 commit intoJul 16, 2026
Conversation
Same fix as host-ocp4-assisted-scale (PR #9871) applied to the installer role. Transient API failures from the Assisted Installer service can cause wait_for_hosts to fail on first attempt.
Contributor
Author
|
@agonzalezrh same retry fix as #9871 but for the installer role. The v2 equivalent also needs this change at setup_infrastructure.yml#L153. |
agonzalezrh
approved these changes
Jul 16, 2026
agonzalezrh
pushed a commit
to rhpds/agnosticd-v2
that referenced
this pull request
Jul 17, 2026
Transient API failures from the Assisted Installer service can cause wait_for_hosts to fail on first attempt. Adding until/retries/delay makes it retry up to 3 times with 20s between attempts. Companion v1 fix: redhat-cop/agnosticd#9872
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same fix as #9871 (host-ocp4-assisted-scale) applied to the host-ocp4-assisted-installer role.
The
wait_for_hoststask can fail on transient Assisted Installer API errors. Addinguntil/retries/delaymakes it retry up to 3 times with 20s between attempts.Companion v2 change needed at: https://github.com/rhpds/agnosticd-v2/blob/5744e00fe05787e752334db87b0497cf8f5970ba/ansible/roles/host_ocp4_assisted_installer/tasks/setup_infrastructure.yml#L153