Skip to content

AzureMonitorAgent: add tested Ubuntu 26.04 support - #2201

Open
karmafeast wants to merge 1 commit into
Azure:masterfrom
karmaterminal:pr/20260731/AMA_needs_2604
Open

AzureMonitorAgent: add tested Ubuntu 26.04 support#2201
karmafeast wants to merge 1 commit into
Azure:masterfrom
karmaterminal:pr/20260731/AMA_needs_2604

Conversation

@karmafeast

Copy link
Copy Markdown

Summary

Closes #2200. Related to the observed installation failure in #2173.

Add Ubuntu 26.04 to the Azure Monitor Agent supported-distribution maps for x86_64 and aarch64, with regression coverage for the production installer gate, troubleshooting gate, distro detection, and Python 3.14 runtime.

Attribution

This change is based on and credits #2199 by @kamilon for the original Ubuntu 26.04 allowlist change and public x86_64/aarch64 end-to-end validation.

This alternative adds repository-level coverage so the support declaration is protected by CI. The test changes can also be reviewed or reused independently if the project prefers #2199 as the merge vehicle.

Changes

  • Add Ubuntu 26.04 to supported_dists_x86_64 and supported_dists_aarch64.
  • Verify the production is_vm_supported_for_extension gate accepts Ubuntu 26.04 on both architectures.
  • Verify the troubleshooting check_vm_supported gate accepts Ubuntu 26.04 on both architectures.
  • Verify both support maps explicitly contain Ubuntu 26.04.
  • Verify production and troubleshooting distro detection preserve VERSION_ID="26.04".
  • Extend the GitHub Actions Python matrix with Python 3.13 and 3.14.
  • Prevent format_alternate_versions from mutating the shared support list while formatting an unsupported-version message.

Why the mutation fix is included

The new support-map assertion exposed that format_alternate_versions used pop() on the shared list. Running an unsupported-version check therefore removed the newest supported version for the remainder of the process. Formatting now uses a slice and leaves the support declaration unchanged.

Validation

The complete 127-test AzureMonitorAgent suite passes locally on:

  • Python 3.9.21
  • Python 3.12.11
  • Python 3.13.1
  • Python 3.14.6

All six GitHub Actions jobs pass in the public fork for Python 3.9 through 3.14.

The existing #2199 provides real-VM ingestion validation for Ubuntu 26.04 on both x86_64 and aarch64; this PR adds the missing repository regression and runtime coverage.

Add Ubuntu 26.04 to the x86_64 and aarch64 support gates and cover production detection, installer admission, and troubleshooter admission.

Extend CI through Python 3.14 and avoid mutating the shared distro list while formatting unsupported-version guidance.

Based on Azure#2199 by @kamilon, which supplied the allowlist change and end-to-end validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0652e405-69e7-4c45-bf9c-e81e5026013b
@karmafeast

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Microsoft"

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.

AzureMonitorAgent: add Ubuntu 26.04 regression and Python 3.14 coverage

1 participant