-
Notifications
You must be signed in to change notification settings - Fork 169
tests/platforms: add test for Azure SR-IOV udev rules #3947
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
base: testing-devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new test to verify that Azure SR-IOV network interfaces are correctly marked as unmanaged by NetworkManager. The test script is well-structured and the logic is sound. I have one suggestion to improve the efficiency of the script by reducing redundant calls to nmcli within a loop. Overall, this is a valuable addition to the test suite.
9e78dca to
8bebbcc
Compare
Introduce a new test which verifies that udev rules for Azure SR-IOV network interfaces correctly mark them as unmanaged by NetworkManager. It only runs on Azure and uses Standard_D2s_v3 or larger instance type with Accelerated Networking enabled. The test checks that SR-IOV interfaces (PCI devices with vendor drivers like mlx5_core) have the AZURE_UNMANAGED_SRIOV property set, and that NetworkManager respects this property by leaving them unmanaged. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
travier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Mostly nits
| @@ -0,0 +1 @@ | |||
| /home/aaradhak/coderepo/fedora-coreos-config No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably did not want to include this one
| fi | ||
| done | ||
|
|
||
| nm_devices=$(nmcli -t -f DEVICE,STATE device) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK as is but can we get this in JSON format? That would be a bit nicer.
| fi | ||
| fi | ||
| done | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
You also have an override file that you probably don't want there: overrides/rootfs/usr/libexec/ignition-apply |
Introduce a new test which verifies that udev rules for Azure SR-IOV network interfaces correctly mark them as unmanaged by NetworkManager. It only runs on Azure and uses Standard_D2s_v3 or larger instance type with Accelerated Networking enabled.
The test checks that SR-IOV interfaces (PCI devices with vendor drivers like mlx5_core) have the AZURE_UNMANAGED_SRIOV property set, and that NetworkManager respects this property by leaving them unmanaged.