NUMA aware live migration failed when vCPU pin set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Artom Lifshitz | ||
Train |
Fix Committed
|
High
|
Dan Smith |
Bug Description
Description
===========
When vCPU pin policy is dedicated, the NUMA aware live migration may go failed.
Steps to reproduce
==================
1. Create two flavor: 2c2g.numa; 4c.4g.numa
(venv) [root@t1 ~]# openstack flavor show 2c2g.numa
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| disk | 1 |
| id | b4a2df98-
| name | 2c2g.numa |
| os-flavor-
| properties | hw:cpu_
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 2 |
+------
(venv) [root@t1 ~]# openstack flavor show 4c.4g.numa
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| disk | 1 |
| id | cf53f5ea-
| name | 4c.4g.numa |
| os-flavor-
| properties | hw:cpu_
| ram | 4096 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
2. Create four instance (2c2g.numa * 2, 4c.4g.numa * 2)
3. Live migrate the instances one by one
4. After the four instances live migrate done, check the vCPU pin is correct (use 'virsh vcpupin [vm_id]')
5. If vCPU pin correct, continue to step 3.
Expected result
===============
The vCPU pin is correct
Actual result
=============
The vCPU pin not correct on compute node: t1.
(nova-libvirt)
Id Name State
-------
138 instance-00000012 running
139 instance-00000011 running
(nova-libvirt)
VCPU: CPU Affinity
-------
0: 0
1: 15
(nova-libvirt)
VCPU: CPU Affinity
-------
0: 0
1: 15
Environment
===========
Code version: master, 23 Sep
Three compute nodes:
t1: 16C, 24GB (2 NUMA nodes)
t2: 12C, 16GB (2 NUMA nodes)
t3: 8C, 12GB (2 NUMA nodes)
The image has no property.
Hypervisor: Libvirt + KVM
Storage: ceph
Networking_type: Neutron + OVS
Logs & Configs
==============
Please check the attachment to get log file.
tags: | added: numa |
tags: | added: train-rc-potential |
Changed in nova: | |
importance: | Undecided → High |
no longer affects: | nova/train |
This may be a duplicate of bug 1829349.