defining remote_managed PCI device in [pci]passthrough_whitelist with a PCI address glob cause the wrong error

Bug #1982763 reported by Balazs Gibizer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Balazs Gibizer

Bug Description

When the [pci]passthrough_whitelist config contains a "remote_managed": True device specification with a PCI address glob that matches a PF nova should reject that as the remote managed feature is only implemented for VFs. Nova does that eventually but with the wrong reason and strange message. Nova tries to use the stringified PciAddressGlobSpec object as a PCI address string when trying to query the PCI product_id of the device. The lookup fails, as PciAddressGlobSpec is not a valid PCI address.

I will push a reproduction test soon.

Tags: pci
tags: added: pci
summary: defining remote_managed PCI device in [pci]passthrough_whitelist with a
- PCI address glob cause error
+ PCI address glob cause the wrong error
Changed in nova:
assignee: nobody → Balazs Gibizer (balazs-gibizer)
Changed in nova:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.