Skip to content

Fixes #39406 - Add curl retries for ansible callback#11108

Open
spesnova717 wants to merge 1 commit into
theforeman:developfrom
FujitsuResearch:fix/ansible-callback-retry
Open

Fixes #39406 - Add curl retries for ansible callback#11108
spesnova717 wants to merge 1 commit into
theforeman:developfrom
FujitsuResearch:fix/ansible-callback-retry

Conversation

@spesnova717

Copy link
Copy Markdown
Contributor

Summary

Fixes ansible-callback.service failing on first boot when a single curl
gives up before DNS/network initialization has settled, losing the callback to
Tower/AWX. Resolved by letting curl retry via its built-in retry flags.

Changes

  • Add --retry 11 --retry-delay 5 --retry-all-errors (12 attempts total, fixed 5s interval)
  • Add --connect-timeout 10 to bound each attempt
  • Add -f (HTTP 4xx/5xx exit non-zero) and -S (log errors)
  • Add TimeoutStartSec=300s (the 90s default would let systemd kill the unit mid-retry)
  • Update affected renderer snapshots

- add retry and timeout handling for transient boot-time failures
- update renderer snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant