Skip to content

Add retry logic to early-stage package installs#56

Merged
Oddly merged 1 commit intomainfrom
fix/package-install-retries
Mar 4, 2026
Merged

Add retry logic to early-stage package installs#56
Oddly merged 1 commit intomainfrom
fix/package-install-retries

Conversation

@Oddly
Copy link
Copy Markdown
Owner

@Oddly Oddly commented Mar 1, 2026

Closes #46.

The main service package installs already have retry logic, but six early-stage tasks did not: GPG key download (get_url), gpg package installs on Debian and RHEL, crypto-policies-scripts, openssl, and the security prerequisite packages. These are vulnerable to transient network issues or package manager lock contention, especially in CI where multiple containers share the same cache. Added the same retries: 3 / delay: 10 / until: success pattern already used by the service installs.

@Oddly Oddly force-pushed the fix/package-install-retries branch 9 times, most recently from 9837472 to a105c90 Compare March 4, 2026 15:09
The main service package installs (elasticsearch, kibana, logstash,
beats) already have retries/until/delay, but several early-stage tasks
that run before any Elastic packages are installed did not. These are
vulnerable to transient network issues, DNS hiccups, or package manager
lock contention — especially in CI where multiple containers hit the
same cache simultaneously.

Added retries: 3 / delay: 10 / until: success to six tasks across
repos, elasticsearch, and elasticstack roles: GPG key download, gpg
package install (Debian and RHEL), crypto-policies-scripts install,
openssl install, and security prerequisite packages.

Closes #46
@Oddly Oddly force-pushed the fix/package-install-retries branch from a105c90 to 3e4e2fc Compare March 4, 2026 19:06
@Oddly Oddly merged commit 7d7b343 into main Mar 4, 2026
22 of 23 checks passed
@Oddly Oddly deleted the fix/package-install-retries branch March 4, 2026 19:11
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.

Add retry logic to early package installs and GPG key download

1 participant