Skip to content

Commit 265f492

Browse files
committed
Multiple spec per PCI alias limitation
Document and the limitation of the PCI in Placement feature that it does not support [pci]alias configuration where the name of the alias is repeated. E.g. [pci] alias = { "name": "vf1", "product_id":"10ca", "vendor_id":"8086", "device_type":"type-VF"} alias = { "name": "vf1", "product_id":"f000", "vendor_id":"8086", "device_type":"type-VF"} This would mean the alias vf1 can be fulfilled from devices with product id 10ca OR f000. However this OR relationship cannot be encoded to a single Placement allocation query as Placement does not support requesting alternative resource classes for a request[2]. This limitation was encoded in the original PCI in Placement implementation[1] but we missed to mention it in the doc. This is now fixed. [1]https://github.com/openstack/nova/blob/0d484ce37d86e989c8abdf57aec5e334f68206ef/nova/objects/request_spec.py#L504-L528 [2]https://docs.openstack.org/api-ref/placement/#list-allocation-candidates Related-Bug: #2102038 Change-Id: I9dd78b1498f870a4e4c3f26c23d42d105aec0350 (cherry picked from commit c3f392d)
1 parent f0a1ee5 commit 265f492

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

doc/source/admin/pci-passthrough.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ be added to the resource provider representing the matching PCI devices.
431431
(Zed) the nova-compute service will refuse to start with such configuration.
432432
It is suggested to use the PCI address of the device instead.
433433

434+
.. important::
435+
While nova supported configuring :oslo.config:option:`pci.alias` where an
436+
alias name is repeated and therefore associated to multiple alias
437+
specifications, such configuration is not supported when PCI tracking in
438+
Placement is enabled.
439+
434440
The nova-compute service makes sure that existing instances with PCI
435441
allocations in the nova DB will have a corresponding PCI allocation in
436442
placement. This allocation healing also acts on any new instances regardless of

0 commit comments

Comments
 (0)