Skip to content

Establish Azure Linux 4.0 Support in Lisa#4546

Draft
MadhurAggarwal wants to merge 4 commits into
microsoft:mainfrom
MadhurAggarwal:madagg/establish-azl-4.0-support
Draft

Establish Azure Linux 4.0 Support in Lisa#4546
MadhurAggarwal wants to merge 4 commits into
microsoft:mainfrom
MadhurAggarwal:madagg/establish-azl-4.0-support

Conversation

@MadhurAggarwal

@MadhurAggarwal MadhurAggarwal commented Jun 19, 2026

Copy link
Copy Markdown
Member

Description

Establish Azure Linux 4.0 Support in Lisa

  • Add Lazy-Init DNF tool for CBL Mariner 4.0 to avoid dnf_tool_unavailable errors
  • Use drop-ins to handle missing systemd-logind config in Azl 4.0
  • Install drm-utils for modetest in 4.0
  • Add BLS Aware Grub Config for Azl 4.0 (inherited from Redhat) with updated Path for the files

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

Copilot AI review requested due to automatic review settings June 19, 2026 08:48

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.

Pull request overview

This PR establishes Azure Linux (CBL-Mariner) 4.0 support paths in LISA by extending GRUB configuration handling, making CBL-Mariner package-manager detection more resilient via lazy initialization, and ensuring modetest can be installed on Azl 4+.

Changes:

  • Add an Azl4 GRUB config implementation (RHEL/BLS-aware) with Azure Linux–specific UEFI GRUB paths.
  • Lazily initialize the CBLMariner DNF tool selection to avoid early dnf_tool_unavailable-style failures, and add Azl 4+ systemd-logind drop-in handling for KillUserProcesses.
  • Install drm-utils on CBLMariner 4+ to enable modetest usage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lisa/tools/grub_config.py Adds Azl4 GRUB config selection and Azure Linux UEFI GRUB path handling via a subclass override.
lisa/operating_system.py Makes CBLMariner DNF tool selection lazy and adds Azl 4+ logind drop-in configuration path.
lisa/microsoft/testsuites/display/modetest.py Ensures modetest can be installed on CBLMariner 4+ via drm-utils.

Comment thread lisa/tools/grub_config.py
Comment on lines 34 to 38
raise UnsupportedDistroException(
os=node.os,
message="Grub tool only supported on CBLMariner 2.0/3.0, "
message="Grub tool only supported on CBLMariner 2.0/3.0/4.0, "
"Debian-based distributions, and RHEL-based distributions.",
)
Comment thread lisa/operating_system.py
Comment on lines 2189 to 2193
def _dnf_tool(self) -> str:
if not self._dnf_tool_name:
self._initialize_package_installation()
return self._dnf_tool_name

@MadhurAggarwal MadhurAggarwal changed the title Madagg/establish azl 4.0 support Establish Azure Linux 4.0 Support in Lisa Jun 19, 2026
@MadhurAggarwal MadhurAggarwal force-pushed the madagg/establish-azl-4.0-support branch from 1c52a27 to f0e49b2 Compare June 19, 2026 10:41
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