Add retry logic to early-stage package installs#56
Merged
Conversation
9837472 to
a105c90
Compare
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
a105c90 to
3e4e2fc
Compare
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.
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.