pci_passthrough_whitelist should support single quotes for keys and values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
When having the following in /etc/nova/nova.conf
pci_passthrough
Nova compute fails to start and I get the error:
2015-07-01 09:48:03.610 4791 ERROR nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
2015-07-01 09:48:03.610 4791 TRACE nova.openstack.
When using double quotes there is no problem:
pci_passthrough
Version
======
python-
tags: | added: config |
Changed in nova: | |
assignee: | nobody → Moshe Levi (moshele) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Moshe Levi (moshele) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
The code tries [1] to parse this config option as a JSON string. Try
this:
invalid JSON: {'devname' :'enp5s0f1' , 'physical_ network' :'physnet2' } :"enp5s0f1" , "physical_ network" :"physnet2" }
valid JSON: {"devname"
with [2]. The config option "pc_alias" behaves the same.
I'm not sure if this is a configuration issue or if the code should
(somehow) tolerate that. At least the documentation of these options [3]
should be clarified that the string option has to be a valid JSON.
[1] https:/ /github. com/openstack/ nova/blob/ master/ nova/pci/ whitelist. py jsonlint. com/ docs.openstack. org/kilo/ config- reference/ content/ list-of- compute- config- options. html
[2] http://
[3] http://