Fix upgrade and azure#532
Merged
Merged
Conversation
Add `apt_update_resilient` and `apt_install_resilient` helper functions that retry apt operations with list repair between attempts to handle transient archive.ubuntu.com failures (e.g. truncated InRelease files, "Splitting up into data and signature failed" errors). Changes: - Configure APT with retry settings and timeouts via /etc/apt/apt.conf.d - Wrap apt-get update/install calls with retry logic and self-repair - Add retry loop for Azure CLI installation from aka.ms - Apply across db-with-agent, dra-admin modules with fallback to plain apt commands when helpers are unavailable
Add `ignore_healthcheck_checks = ["sonargd-audit-directory"]` to the sonar upgrade workflow to prevent preflight validations from aborting on freshly-deployed POC environments, where the audit directory always contains files and trips the threshold-based WARNING. Also document the `ignore_healthcheck_checks` and `ignore_healthcheck_warnings` options in the AWS sonar_upgrade example so users know how to bypass non-actionable healthchecks.
Drop `--retry-all-errors` from the Azure CLI install command since it requires curl >= 7.71.0, while Ubuntu 20.04 ships curl 7.68.0. The unknown option caused curl to exit 2, and with the newly added `set -o pipefail`, the failure was masked by the pipe to `sudo bash`. Rely on the existing outer retry loop for resilience instead.
Detect the RHEL major version and install only the corresponding packages-microsoft-prod RPM instead of attempting both RHEL 8 and 9 variants with `|| true`. The previous approach combined with dnf_retry wasted up to ~5 minutes on the guaranteed-failing install, which could exceed the downstream null_resource readiness timeout.
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.
No description provided.