于 2013年09月21日 05:05, David Kang 写道:
----- Original Message -----
From: "Russell Bryant" <rbry...@redhat.com>
To: openstack-dev@lists.openstack.org
Sent: Friday, September 20, 2013 1:28:13 PM
Subject: Re: [openstack-dev] [nova] [pci passthrough] Is "extra_info" broken?
https://bugs.launchpad.net/nova/+bug/1223559
This should be already fixed. Make sure you're using a version new
enough to have the fix in it.
I've already patched the following two bug fixes.
https://review.openstack.org/#/c/46690/
https://review.openstack.org/#/c/46464/
And the error that I have now is different from the previous ones.
Previous bug happens when extra_info is not specified in the pci_whitelist flag
in the nova.conf file.
Now, I specified extra_info something like this (for test):
pci_passthrough_whitelist=[{"vendor_id":"8086","product_id":"100f","extra_info":
{"path":"/dev/sda"}}]
hi, David Kang
thanks for use pci passthrough, extra info now is only use to store the
'VF' 's "PF" info.
for this version, extra info is not fully ready to easy use.
and would you please fill your 'wish list' to this bug? that help to
track pci custom requirement.
https://bugs.launchpad.net/nova/+bug/1222990
Then, I got error.
Is the error due to my misuse of extra_info or a bug?
The log in /var/log/nova/compute.log says:
2013-09-20 14:00:53.203 7292 CRITICAL nova [-] Unacceptable parameters.
2013-09-20 14:00:53.203 7292 TRACE nova Traceback (most recent call last):
2013-09-20 14:00:53.203 7292 TRACE nova File "/usr/bin/nova-compute", line 10, in
<module>
2013-09-20 14:00:53.203 7292 TRACE nova sys.exit(main())
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/cmd/compute.py", line 68, in main
2013-09-20 14:00:53.203 7292 TRACE nova db_allowed=False)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/service.py", line 257, in create
2013-09-20 14:00:53.203 7292 TRACE nova db_allowed=db_allowed)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/service.py", line 139, in __init__
2013-09-20 14:00:53.203 7292 TRACE nova self.manager =
manager_class(host=self.host, *args, **kwargs)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 450, in
__init__
2013-09-20 14:00:53.203 7292 TRACE nova self.driver =
driver.load_compute_driver(self.virtapi, compute_driver)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/virt/driver.py", line 1106, in
load_compute_driver
2013-09-20 14:00:53.203 7292 TRACE nova virtapi)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line
52, in import_object_ns
2013-09-20 14:00:53.203 7292 TRACE nova return
import_class(import_value)(*args, **kwargs)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 337, in
__init__
2013-09-20 14:00:53.203 7292 TRACE nova self.dev_filter =
pci_whitelist.get_pci_devices_filter()
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/pci/pci_whitelist.py", line 117, in
get_pci_devices_filter
2013-09-20 14:00:53.203 7292 TRACE nova return
PciHostDevicesWhiteList(CONF.pci_passthrough_whitelist)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/pci/pci_whitelist.py", line 102, in
__init__
2013-09-20 14:00:53.203 7292 TRACE nova self.spec =
self._parse_white_list_from_config(whitelist_spec)
2013-09-20 14:00:53.203 7292 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/pci/pci_whitelist.py", line 84, in
_parse_white_list_from_config
2013-09-20 14:00:53.203 7292 TRACE nova raise
exception.PciConfigInvalidWhitelist(reason=str(e))
2013-09-20 14:00:53.203 7292 TRACE nova PciConfigInvalidWhitelist: Unacceptable
parameters.
2013-09-20 14:00:53.203 7292 TRACE nova
Thanks,
David
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev