SRIOV pci_numa_policy dosen't working when create instance with 'cpu_policy' and 'num_nodes'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Li Zhouzhou |
Bug Description
Description
===========
When we create a sriov instance, which flavor has 'cpu_policy', 'numa_nodes' property, it's also has 'pci_numa_
However, in some cases, it didn't work, because the fake pci request, which produced by nova flavor and [pci] alias in nova.conf hasn't write related information (such as pci_numa_policy, alias_name and some spec info) into real pci_requests (which contain port_id). So, in nova/pci/stats.py function 'def _filter_
Environment
===========
Openstack Queen
compute node information: Two numa nodes(node-0 node-1), SRIOV-PCI devices associated with NUMA node-1, but cpus of node-1 have run out.
Steps to reproduce
==================
nova.conf
[pci]
alias = {"name": "QuickAssist"
nova flavor
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 20 |
| extra_specs | {"hw:pci_
| id | 430e1afd-
| name | multiqueue |
| os-flavor-
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
neutron port: one or some 'direct' ports;
Expected result
===============
The instance could be created.
Actual result
=============
Schedule failed.
Changed in nova: | |
assignee: | nobody → Li Zhouzhou (lizhouzhou) |
Fix proposed to branch: stable/queens /review. openstack. org/651429
Review: https:/