Skip to content

Nic: allow bind and unbind by device uuid and sysfs path - #4655

Open
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-1-process-wait-linefrom
mcgov/stack-2-nic-bind-uuid
Open

Nic: allow bind and unbind by device uuid and sysfs path#4655
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-1-process-wait-linefrom
mcgov/stack-2-nic-bind-uuid

Conversation

@mcgov

Copy link
Copy Markdown
Collaborator

Part 2 of 9 of a stacked series that reworks the DPDK SRIOV hot plug tests. Stacked on #4654, review only the last commit.

  • Nics.bind and Nics.unbind required a NicInfo, so a device that is not represented in the node's nic list (for example a VF that has just been hot removed) could not be rebound. They now accept either a NicInfo or a raw device uuid string plus the driver sysfs path.
  • get_nic_by_subnet skips nics without an assigned ip address instead of raising while parsing an empty address.

Key Test Cases:
verify_dpdk_sriov_rescind_failover_send_only|verify_dpdk_build_netvsc|verify_dpdk_build_failsafe

Impacted LISA Features:
Sriov, NetworkInterface

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts latest
  • redhat rhel 9_5 latest

Nics.bind and Nics.unbind required a NicInfo, so devices that are not
represented in the node's nic list (for example a VF that has just been
hot removed) could not be rebound. Accept either a NicInfo or a raw
device uuid string plus the driver sysfs path.

Also skip nics without an assigned ip address in get_nic_by_subnet,
which previously raised while parsing an empty address.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5d5f58ad-b9df-4420-ad37-22caee78e925
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.

1 participant