nova-compute.log display incorrect information for CPUPinningUnknown.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Charlotte Han | ||
Pike |
Fix Released
|
Low
|
Charlotte Han |
Bug Description
Description
===========
When nova-compute occured CPUPinningUnknown exception, the information of nova-compute.log is wrong.
Steps to reproduce
==================
* I did create 6 instances with numa topology.
[root@ctrl3 ~]# virsh list
Id Name State
-------
1 instance-00000002 running
2 instance-00000006 running
3 instance-0000000a running
4 instance-00000008 running
5 instance-0000000c running
6 instance-00000004 running
[root@ctrl3 ~]# virsh vcpupin 1
VCPU: CPU Affinity
-------
0: 28
[root@ctrl3 ~]# virsh vcpupin 2
VCPU: CPU Affinity
-------
0: 2
[root@ctrl3 ~]# virsh vcpupin 3
VCPU: CPU Affinity
-------
0: 44
[root@ctrl3 ~]# virsh vcpupin 4
VCPU: CPU Affinity
-------
0: 0
[root@ctrl3 ~]# virsh vcpupin 5
VCPU: CPU Affinity
-------
0: 16
[root@ctrl3 ~]# virsh vcpupin 6
VCPU: CPU Affinity
-------
0: 18
* then I did modify section vcpu_pin_set in nova.conf.
[root@ctrl3 ~]# cat /etc/nova/nova.conf | grep vcpu_pin_set
vcpu_pin_set = "0-47,^18"
* then I did restart openstack-
Log display "Error updating resources for node ctrl3.: CPUPinningUnknown: CPU set to pin [18] must be a subset of known CPU set [28]".
But this information is wrong, known CPU set is not only [28], it should be [0, 2, 4, 6, 8, 10, 12, 14, 16, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46]
Expected result
===============
CPUPinningUnknown: CPU set to pin [18] must be a subset of known CPU set [0, 2, 4, 6, 8, 10, 12, 14, 16, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46]
Actual result
=============
CPUPinningUnknown: CPU set to pin [18] must be a subset of known CPU set [28]
Environment
===========
1. Exact version of OpenStack you are running. See the following
Pike version
2. Which hypervisor did you use?
Libvirt + KVM
Logs & Configs
==============
/lockutils.py:282
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
2017-11-03 14:44:01.425 32568 ERROR nova.compute.
Changed in nova: | |
importance: | Undecided → Low |
assignee: | nobody → Charlotte Han (hanrong) |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/517592
Review: https:/