Skip to content

feat: install aznfs package on AzureLinux 3.0#8085

Open
andyzhangx wants to merge 7 commits intomainfrom
andyzhangx/install-aznfs-linux3-2
Open

feat: install aznfs package on AzureLinux 3.0#8085
andyzhangx wants to merge 7 commits intomainfrom
andyzhangx/install-aznfs-linux3-2

Conversation

@andyzhangx
Copy link
Contributor

What type of PR is this?
/kind feature

What this PR does / why we need it:
feat: install aznfs package on AzureLinux 3.0

Per aznfs-mount team's recommendation, we still need to download a rpm package from PMC site, and then use dnf to install aznfs package on Azure Linux 3.0, below are the working command lines:

curl -sSL -O https://packages.microsoft.com/config/rhel/9/packages-microsoft-prod.rpm
dnf install packages-microsoft-prod.rpm -y
env AZNFS_NONINTERACTIVE_INSTALL=1 dnf install aznfs -y

Which issue(s) this PR fixes:

Fixes #

Requirements:

  • uses conventional commit messages
  • includes documentation
  • adds unit tests
  • tested upgrade from previous version
  • commits are GPG signed and Github marks them as verified

Special notes for your reviewer:

Release note:

none

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Azure Linux 3.0 support in the VHD build pipeline to install the aznfs NFS client package from packages.microsoft.com (PMC) by downloading and installing the Microsoft repo RPM, then installing aznfs. This fits into AgentBaker’s VHD builder + shared Linux provisioning script set by ensuring the dependency is present on Azure Linux 3.0 images.

Changes:

  • Invoke installAznfsPkgFromPMC during Mariner/AzureLinux VHD dependency installation.
  • Add installAznfsPkgFromPMC implementation to the Mariner/AzureLinux install script.
  • Regenerate/refresh multiple pkg/agent/testdata/**/CustomData snapshots.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vhdbuilder/packer/install-dependencies.sh Calls installAznfsPkgFromPMC during Mariner/AzureLinux (non-OSGuard) VHD build setup.
parts/linux/cloud-init/artifacts/mariner/cse_install_mariner.sh Introduces installAznfsPkgFromPMC to download/install Microsoft repo RPM and install aznfs on Azure Linux 3.0.
pkg/agent/testdata/Marinerv2+DisableUnattendedUpgrades=true/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/Marinerv2+DisableUnattendedUpgrades=false/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/MarinerV2+Kata/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/MarinerV2+CustomCloud/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/MarinerV2+CustomCloud+USSec/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/MarinerV2+CustomCloud+USNat/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/AzureLinuxv2+DisableUnattendedUpgrades=true/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/AzureLinuxv2+DisableUnattendedUpgrades=false/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/AzureLinuxV3+Kata/CustomData Updated generated CustomData snapshot.
pkg/agent/testdata/AzureLinuxV2+Kata/CustomData Updated generated CustomData snapshot.

You can also share your feedback on Copilot code review. Take the survey.

@andyzhangx andyzhangx force-pushed the andyzhangx/install-aznfs-linux3-2 branch from 647ac4d to 6e493f1 Compare March 12, 2026 14:56
@andyzhangx andyzhangx force-pushed the andyzhangx/install-aznfs-linux3-2 branch from 6e493f1 to 0b36d79 Compare March 13, 2026 02:07
Copilot AI review requested due to automatic review settings March 13, 2026 02:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.


You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 6 comments.


You can also share your feedback on Copilot code review. Take the survey.

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.

5 participants