get_vcpu_total in nova/virt/libvirt.py reports wrong number of physical CPUs on Xen dom0 systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Christian Berendt |
Bug Description
The Xen dom0 has 4 physical CPUs assigned, multiprocessing
But the system has 32 physical CPUs. While using virsh nodeinfo you can receive the correct number of CPUs.
Because we're in the libvirt driver we should use libvirt and not multiprocessing.
Python 2.6.8 (unknown, May 29 2012, 22:30:44)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> print multiprocessing
4
# cat /proc/cpuinfo | grep processor | wc -l
4
# virsh nodeinfo
CPU model: x86_64
CPU(s): 32
CPU frequency: 2000 MHz
CPU socket(s): 4
Core(s) per socket: 8
Thread(s) per core: 1
NUMA cell(s): 1
Memory size: 402648064 KiB
# xm cpupool-list
Name CPUs Sched Active Domain count
Pool-0 32 credit y 1
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/17125
Review: https:/