← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2066989] [NEW] Virtual function is being attached to port regardless of the exclude_devices configuration

 

Public bug reported:

When configuring SR-IOV and excluding certain VFs in the exclude_devices
entry of sriov_agent.ini, I encounter an issue where the excluded
devices are still being attached to created ports. When I create a VM
from scratch with a port attached to an excluded device, the VM creation
eventually fails with the error
"nova.exception.VirtualInterfaceCreateException: Virtual Interface
creation failed." I suppose this is the expected behavior because the
device should be excluded. However, when I create a VM and then try to
attach the port with the excluded device, the port attaches without any
issues. The core problem seems to be that the port with the excluded
device is created regardless of its exclusion.

I use the following config for exclude a device, in the sriov_agent.ini:

[sriov_nic]
exclude_devices = enp65s0f0np0:0000:41:01.0,enp65s0f1np1:0000:41:11.0

I can still create a port on that device, and I can see the pci_slot
entry on the port as pci_slot='0000:41:11.0'.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2066989

Title:
  Virtual function is being attached to port regardless of the
  exclude_devices configuration

Status in neutron:
  New

Bug description:
  When configuring SR-IOV and excluding certain VFs in the
  exclude_devices entry of sriov_agent.ini, I encounter an issue where
  the excluded devices are still being attached to created ports. When I
  create a VM from scratch with a port attached to an excluded device,
  the VM creation eventually fails with the error
  "nova.exception.VirtualInterfaceCreateException: Virtual Interface
  creation failed." I suppose this is the expected behavior because the
  device should be excluded. However, when I create a VM and then try to
  attach the port with the excluded device, the port attaches without
  any issues. The core problem seems to be that the port with the
  excluded device is created regardless of its exclusion.

  I use the following config for exclude a device, in the
  sriov_agent.ini:

  [sriov_nic]
  exclude_devices = enp65s0f0np0:0000:41:01.0,enp65s0f1np1:0000:41:11.0

  I can still create a port on that device, and I can see the pci_slot
  entry on the port as pci_slot='0000:41:11.0'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2066989/+subscriptions