tests: add pciback suite for port kept in host on name mismatch - #1215
Closed
eriknordmark wants to merge 1 commit into
Closed
tests: add pciback suite for port kept in host on name mismatch#1215eriknordmark wants to merge 1 commit into
eriknordmark wants to merge 1 commit into
Conversation
6 tasks
Adds an evetestkit suite verifying that domainmgr keeps a network port in the host instead of reserving its PCI device to pciback when the controller's device model disagrees with the kernel about that port's PCI device. - TestPortKeptOnIfnameMismatch: the model's interface name for a port differs from the kernel-assigned name (e.g. enpNsN vs ethN); the NIC must be matched by PCI address and kept in the host. Passes on an EVE build with the domainmgr PCI-identity fix, fails against master without it. - TestPortKeptOnPhantomAdapterSamePci: a non-network device (audio) declared at the same PCI as an in-use network port must not be reserved to pciback. Documents current behavior (EVE keeps devices sharing a PCI controller in the host); a baseline to extend once EVE reports such device-model inconsistencies back to the controller. Signed-off-by: eriknordmark <erik@zededa.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
eriknordmark
force-pushed
the
domainmgr-pciback-pci-identity
branch
from
July 16, 2026 15:45
00b2cee to
54dcbf3
Compare
Contributor
Author
|
Closing: this pciback coverage is superseded by the equivalent test now implemented in eve's evetest framework, so maintaining a parallel eden suite is redundant. The underlying EVE fix is tracked in lf-edge/eve#6169. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an evetestkit suite (
tests/pciback) that verifies domainmgr keeps anetwork port in the host instead of reserving its PCI device to pciback when
the controller's device model gives the port an interface name that differs
from the kernel-assigned name (e.g.
enpNsNvsethN).The test resolves a port's PCI address from the running IoBundle, rewrites the
device model through the controller so that the port's model interface name no
longer matches the kernel, restarts EVE, and asserts the affected NIC stays
KeepInHostand out of pciback while the device remains reachable.It guards the EVE fix in lf-edge/eve#6169 (match device ports to their PCI
device, not just by interface name). Validated on the ZedVirtual-4G QEMU model:
IsPCIBack=true).How to run
Notes
eth0is left untouched so EVE stays reachable whileeth1is the subject ofthe mismatch.
tests/workflowCI scenario (the model mutation + noderestart cycle takes several minutes). Can add it to
networking.tests.txtifwanted.