Skip to content

Retry assisted-installer host wait on transient API failures - #185

Merged
agonzalezrh merged 1 commit into
mainfrom
assisted-scale-wait-retry
Jul 16, 2026
Merged

Retry assisted-installer host wait on transient API failures#185
agonzalezrh merged 1 commit into
mainfrom
assisted-scale-wait-retry

Conversation

@rhjcd

@rhjcd rhjcd commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

The rhpds.assisted_installer.wait_for_hosts module json-parses the assisted-installer API response and crashes on a transient empty or non-JSON reply ('Expecting value: line 1 column 1 (char 0)') instead of retrying. This killed agd-v2.rhacs-demo-cnv provisions about 90 seconds into the workload on prod1 jobs 37314 (2026-07-14) and 41144 (2026-07-15).

This wraps the task in until/retries (3 x 20s) as a defensive measure. The module's configure_hosts operations are idempotent (hostname/role assignment), so a re-run after a transient API failure is safe. The durable fix is response-tolerant retry inside the collection module itself (rhpds/assisted_installer, would need a v0.0.10 tag plus requirements bumps in the items pinning v0.0.9).

Campaign tracker: RHDPOPS-23814 (this is flake 2; flake 1 is DNS negative caching, fixed in rhpds/core_workloads#163 plus GPTEINFRA-17341 / GPTEINFRA-17342).

The wait_for_hosts module json-parses the assisted-installer API
response and crashes on a transient empty or non-JSON reply
(Expecting value: line 1 column 1). Seen on prod1 jobs 37314 and
41144 (agd-v2.rhacs-demo-cnv), killing provisions about 90 seconds
in. Wrap the task in until/retries as a defensive measure; the
durable fix is response-tolerant retry inside the collection module.
RHDPOPS-23814

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@agonzalezrh
agonzalezrh merged commit 5744e00 into main Jul 16, 2026
2 checks passed
@agonzalezrh
agonzalezrh deleted the assisted-scale-wait-retry branch July 16, 2026 14:37
agonzalezrh pushed a commit to redhat-cop/agnosticd that referenced this pull request Jul 16, 2026
The rhpds.assisted_installer.wait_for_hosts module crashes on transient
empty or non-JSON API responses instead of retrying. Wraps the task in
until/retries (3 x 20s) as a defensive measure. The configure_hosts
operations are idempotent so re-runs are safe.

Mirrors rhpds/agnosticd-v2#185 for v1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants