Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix distribution detection on Amazon Linux 2023 #612

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

chouquette
Copy link
Contributor

@chouquette chouquette commented Sep 16, 2024

We are currently failing to detect the distribution on Amazon Linux 2023. It gets detected as RHEL with an unknown version, meaning it will be 0.
This causes the RHEL 6 and earlier logic to kick in, which means we can't install the agent 7.51+ on AL2023.

Additionally, this attempts to work around a questionable ansible behavior which insists on using the yum package manager, even though DNF is available. We in turn attempt to use the yum module which isn't compatible with python 3, which is the only python version available on AL2023

Should fix issues reported in AGENT-12306 and AGENT-12261

All the supported version have a recent enough glibc, so we can install
the most recent agents there.
Our RHEL version checking isn't compatible with Amazon linux 2023 which
causes us to prevent installing any version above 7.51 there.
@chouquette chouquette requested a review from a team as a code owner September 16, 2024 17:18
@chouquette chouquette merged commit f2ed7d4 into main Sep 20, 2024
157 checks passed
@chouquette chouquette deleted the chouquette/fix_rhel6_detect_amazon branch September 20, 2024 16:34
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