nova libvirt pinning won't work across numa nodes
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
Confirmed
|
Wishlist
|
Sergey Nikitin |
Bug Description
Duplicate of bug https:/
Description of the environment:
NUMA topology4 NUMA nodes
ID0
CPU IDS 0, 20, 1, 21, 2, 22, 3, 23, 4, 24
MEMORY31.3 GB
ID1
CPU IDS 5, 25, 6, 26, 7, 27, 8, 28, 9, 29
MEMORY31.5 GB
ID2
CPU IDS 10, 30, 11, 31, 12, 32, 13, 33, 14, 34
MEMORY31.5 GB
ID3
CPU IDS 15, 35, 16, 36, 17, 37, 18, 38, 19, 39
MEMORY31.5 GB
Steps to reproduce:
1. Prepare cluster with 2+1 nodes on HW with VLAN and available NUMA nodes on one node
2. Assign compute role to the node with NUMA
3. Update nova cpu pinning for the nova compute with 12 Pined CPU
4. numa node (10 CPU for each), 2 CPU for nova
Assign other compute role to the node with NUMA
5. Deploy cluster
6. Check nova.conf on compute node with NUMA. It should contain numa nodes from one numas:
vcpu_pin_
7. Check filter AggregateInstan
8. Run OSTF test
9. Сreate aggregates for instances with cpu pinning
nova aggregate-create performance_2_cpu
nova aggregate-
10. Add one host to the new aggregates
nova aggregate-add-host performance_2_cpu node-2.
11. Create new flavors for VMs that require CPU pinning from one NUMA:
nova flavor-create m1.small.
nova flavor-key m1.small.
12. Create instance with flavor
13. Create new flavors for VMs that require CPU pinning from two NUMAs:
nova flavor-create m1.small.
nova flavor-key m1.small.
nova flavor-create m1.small.
nova flavor-key m1.small.
Expected results: VMs use CPUs from 2 NUMAs
Actual result: If we pin CPUs from 2 and more NUMA nodes, user doesn't have opportunity to boot VMs that will use CPUs from that nodes, only from one
Reproducibility: 100%
Additional information: also try with "hw:numa_nodes": "2". Got "No valid host" error
description: | updated |
Changed in mos: | |
milestone: | none → 9.0 |
tags: | added: area-nova |
Changed in mos: | |
status: | New → Confirmed |
Changed in mos: | |
assignee: | MOS Nova (mos-nova) → Sergey Nikitin (snikitin) |
tags: | added: 10.0-reviewed |
Snapshot: https:/ /drive. google. com/file/ d/0B2v38w72jlwT a3czMm5pTHVlbmc /view?usp= sharing
Please be aware that there are 2 clustes. For this case check the logs for env 2 (node-2, node-5, node-6)