Skip to content

[AI Generated] Update Linux container base to Azure Linux 4.0 - #4854

Open
LiliDeng wants to merge 1 commit into
mainfrom
build/azurelinux4-container_031126_134848
Open

LiliDeng wants to merge 1 commit into
mainfrom
build/azurelinux4-container_031126_134848

Conversation

@LiliDeng

@LiliDeng LiliDeng commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Update the Linux runtime container to mcr.microsoft.com/azurelinux-beta/base/core:4.0.

  • Install Python from the Azure Linux 4.0 distribution repositories.
  • Replace unavailable build-essential with explicit gcc-c++, make, and glibc-devel packages, retaining gcc.
  • Remove unavailable python3-virtualenv; Python's built-in venv module supplies virtual environment creation.
  • Install gzip explicitly because the core image does not include it and AzCopy extraction requires it.
  • Document the base image and Python/venv behavior.

The requested base is a beta image. The existing latest-LISA-release checkout and [ado,azure,libvirt,baremetal] installation behavior are unchanged.

Validation

Performed a complete Docker build on Linux amd64 using the changed Dockerfile, then checked the resulting container:

Check Result
Complete image build, including optional dependency installation Passed; installed mslisa 20261019.1
Python runtime Python 3.14.3
python3 -m pip check No broken requirements found
lisa --help Passed
az version Azure CLI 2.92.0
azcopy --version AzCopy 10.34.1
python3 -m venv and venv pip Passed
git diff --check Passed

LISA CLI emitted notices for the intentionally uninstalled AWS/AI extras. No Azure VM deployments or end-to-end LISA test suites were executed; these checks validate image buildability and CLI startup, not full Python 3.14 or cloud-platform certification.

Replace unavailable build dependency packages with explicit GNU toolchain packages, use the built-in venv module, and install gzip for AzCopy extraction.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 06:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The beta OS/Python 3.14 image is published as latest, but build and CLI checks leave end-to-end Azure provisioning, SSH/reboot, and libvirt compatibility unverified.

No open issues 🎉

What changed in this PR

Updates LISA’s Linux runtime container to the Azure Linux 4.0 beta core image while preserving the existing release checkout and optional dependency installation.

Changes:

  • Installs distribution-provided Python and explicit compiler/build packages.
  • Removes python3-virtualenv in favor of built-in venv and adds gzip for AzCopy extraction.
  • Documents the new base image and Python behavior.

The PR reports successful image-build and CLI checks; end-to-end validation remains outstanding. Suggested validation:

Key Test Cases:
smoke_test

Impacted LISA Features:
None directly; changes affect container packaging.

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest
File Description
installers/​Dockerfile.linux Switches to Azure Linux 4.0 beta and adjusts runtime/build packages.
docs/​docker_linux.rst Documents the base image, distribution Python, and built-in venv.

Review effort: Balanced

@LiliDeng

LiliDeng commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

AI Test Case Selection

Selected 1 test case(s): smoke_test

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Result: Succeeded

View full logs in Azure DevOps

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants