According to https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking:
"The devname can be a valid PCI device name. The only device names that are supported are those displayed by the Linux utility ifconfig -a and correspond to either a PF or a VF on a vNIC"
However it's possible to supply an empty string as devname
e.g. pci_passthrough_whitelist = {"devname": "", "physical_network":"physnet2"}
It's also possible to have an entry:
pci_passthrough_whitelist = {"physical_network":"physnet2"}
which shouldn't be valid.
Nova should verify that devname is not an empty string and that devname,address or product_id/vendor_id are supplied.
Version
======
python-nova-2015.1.0-4.el7ost.noarch
Expected result
=============
Nova compute should fail to start when specifying an empty string for devname when using physical_network or when not specifying devname,address or product_id/vendor_id
@Wen Zhi Yu (yuywz):
Since you are set as assignee, I switch the status to "In Progress".