[openstack-dev] [Nova]Need suggestion for fixing bug 1466451(pci_passthrough_whitelist configration)

Wen Zhi WW Yu yuywz at cn.ibm.com
Mon Jul 20 06:44:30 UTC 2015


Hi,

I'm working on bug 1466451, which is about the invalid configuration of
property "pci_passthrough_whitelist" in nova.

My proposal for fixing this issue is:

Before start nova-compute sevice, do a precheck against /etc/nova/nova.conf
file, if the value format of "pci_passthrough_whitelist" doesn't match with
any of following ones, the configuration will be recongnized as invalid:

1. Only "devname":
pci_passthrough_whitelist = {"devname":"eth0",
"physical_network":"physnet1"}
2. Only "address":
pci_passthrough_whitelist = {"address":"*:0a:00.*",
"physical_network":"physnet1"}
3. Only "vendor_id + product_id":
pci_passthrough_whitelist = {"vendor_id":"1137","product_id":"0071",
"physical_network":"physnet1"}
4. "devname" and "address":
pci_passthrough_whitelist = {"devname":"eth0", "address":"*:0a:00.*",
"physical_network":"physnet1"}
5. "devname" and "vendor_id+product_id'":
pci_passthrough_whitelist = {"devname":"eth0",
"vendor_id":"1137","product_id":"0071", "physical_network":"physnet1"}
6. "address" and "vendor_id+product_id'":
pci_passthrough_whitelist = {"address":"*:0a:00.*",
"vendor_id":"1137","product_id":"0071", "physical_network":"physnet1"}
7. All of them:
pci_passthrough_whitelist = {"devname":"eth0", "address":"*:0a:00.*",
"vendor_id":"1137", "product_id":"0071", "physical_network":"physnet1"}

Now I need some suggestion to proceed:

1. Do I need to register a blueprint for fixing this issue?
2. What kind of action is appropriate when the invalid configuration of
pci_passthrough_whitelist is dectected, logging the error or raising the
error?

Thanks in advance!

Best Regards,
Yu WenZhi(余文治)
OpenStack on Power Development, IBM Shanghai
2F, 399 Keyuan Rd, Zhangjiang Chuangxin No. 10 Building, Zhangjiang High
Tech Park Shanghai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150720/687e9081/attachment.html>


More information about the OpenStack-dev mailing list