[Starlingx-discuss] Attaching physical PCI devices to guests

Scaccia, Amato Amato.Scaccia at nttdata.com
Wed Sep 1 16:00:08 UTC 2021


Hello everyone,

I'm trying to enable the PCI passthrough. This is the device's info:

PCI address: 0000:3b:00.0
Vendor ID: 8086
Product ID: 1533

I have applied the following config:

--nova-compute--
  [pci]
  alias = { "vendor_id":"8086", "product_id":"1533", "device_type":"type-PCI", "name":"aliasuno" }
passthrough_whitelist = { "vendor_id": "8086", "product_id": "1533" }

--nova-scheduler--
  [filter_scheduler]
  available_filters = nova.scheduler.filters.all_filters
  enabled_filters = RetryFilter,ComputeFilter,AvailabilityZoneFilter,AggregateInstanceExtraSpecsFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,NUMATopologyFilter,ServerGroupAffinityFilter,ServerGroupAntiAffinityFilter,PciPassthroughFilter
  [pci]
  alias = { "vendor_id":"8086", "product_id":"1533", "device_type":"type-PCI", "name":"aliasuno" }

--nova-api-
  [pci]
  alias = { "vendor_id":"8086", "product_id":"1533", "device_type":"type-PCI", "name":"aliasuno" }
  [filter_scheduler]
  available_filters = nova.scheduler.filters.all_filters
  enabled_filters = RetryFilter,ComputeFilter,AvailabilityZoneFilter,AggregateInstanceExtraSpecsFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,NUMATopologyFilter,ServerGroupAffinityFilter,ServerGroupAntiAffinityFilter,PciPassthroughFilter

Then I've created and set a flavor:

$ openstack flavor create --ram 4096 --disk 100 --vcpus 2 m1.medium.pci
$ openstack flavor set m1.medium.pci --property "pci_passthrough:alias"="aliasuno:1"

But when I try to create an instance with this flavor I receive the following error:

No valid host was found. There are not enough hosts available.
500
Traceback (most recent call last): File "/var/lib/openstack/lib/python3.6/site-packages/nova/conductor/manager.py", line 1463, in schedule_and_build_instances instance_uuids, return_alternates=True) File "/var/lib/openstack/lib/python3.6/site-packages/nova/conductor/manager.py", line 870, in _schedule_instances return_alternates=return_alternates) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/client/query.py", line 42, in select_destinations instance_uuids, return_objects, return_alternates) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/rpc/client.py", line 181, in call transport_options=self.transport_options) File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/transport.py", line 129, in _send transport_options=transport_options) File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 682, in send transport_options=transport_options) File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 672, in _send raise result nova.exception_Remote.NoValidHost_Remote: No valid host was found. There are not enough hosts available. Traceback (most recent call last): File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 241, in inner return func(*args, **kwargs) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/manager.py", line 215, in select_destinations allocation_request_version, return_alternates) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/filter_scheduler.py", line 96, in select_destinations allocation_request_version, return_alternates) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/filter_scheduler.py", line 265, in _schedule claimed_instance_uuids) File "/var/lib/openstack/lib/python3.6/site-packages/nova/scheduler/filter_scheduler.py", line 302, in _ensure_sufficient_hosts raise exception.NoValidHost(reason=reason) nova.exception.NoValidHost: No valid host was found. There are not enough hosts available.

How can I fix this? Thanks for your help





________________________________

NTT DATA Italia S.p.A. - Societ? per azioni con socio unico, soggetta ad attivit? di direzione e coordinamento di NTT DATA EMEA Ltd. - Sede legale a Milano, in Viale Cassala 14/A - codice fiscale e iscrizione al Registro delle imprese di Milano Monza Brianza Lodi n. 00513990010, iscritta al Repertorio economico Amministrativo n. 974124 - Capitale sociale di euro 33.107.160,00, interamente versato.



Respect the environment, please: do not print this mail if it is not necessary!




Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20210901/6fffa9f3/attachment-0001.html>


More information about the Starlingx-discuss mailing list