CPU hotplug fails in the system with empty numa nodes, "Invalid value '0-1,16-17' for 'cpuset.mems': Invalid argument"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Fix Released
|
Undecided
|
Unassigned | ||
The Ubuntu-power-systems project |
Fix Released
|
High
|
Canonical Server | ||
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Ubuntu on IBM Power Systems Bug Triage | ||
Xenial |
Won't Fix
|
Low
|
Christian Ehrhardt |
Bug Description
== Comment: #0 - Satheesh Rajendran <email address hidden> - 2017-07-19 04:13:18 ==
CPU hotplug operation fails in the host with empty numa nodes(with no memory) even though VM placement is static and with/without numad is running.
..
<vcpu placement='static' current=
...
# virsh setvcpus virt-tests-vm1 6 --live
error: Invalid value '0-1,16-17' for 'cpuset.mems': Invalid argument
# numactl --hardware
available: 4 nodes (0-1,16-17)
node 0 cpus: 0 8 16 24 32 40
node 0 size: 16188 MB
node 0 free: 1119 MB
node 1 cpus: 48 56 64 72 80 88
node 1 size: 32630 MB
node 1 free: 13233 MB
node 16 cpus: 96 104 112 120 128 136
node 16 size: 0 MB
node 16 free: 0 MB
node 17 cpus: 144 152 160 168 176 184
node 17 size: 0 MB
node 17 free: 0 MB
node distances:
node 0 1 16 17
0: 10 20 40 40
1: 20 10 40 40
16: 40 40 10 20
17: 40 40 20 10
# cat /sys/fs/
0-1
Host:
#uname -a
Linux powerkvm4-lp1 4.10.0-27-generic #30~16.04.2-Ubuntu SMP Thu Jun 29 16:06:52 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
ii libvirt-bin 1.3.1-1ubuntu10.11
ii numad 0.5+20150602-4
qemu-kvm 1:2.5+dfsg-
tags: | added: architecture-ppc64le bugnameltc-156806 severity-high targetmilestone-inin16043 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → libvirt (Ubuntu) |
Changed in ubuntu-power-systems: | |
status: | New → In Progress |
Changed in ubuntu-power-systems: | |
importance: | Undecided → High |
status: | In Progress → Incomplete |
Changed in libvirt (Ubuntu Xenial): | |
status: | New → Incomplete |
Changed in ubuntu-power-systems: | |
assignee: | nobody → David Britton (davidpbritton) |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Invalid |
Changed in libvirt (Ubuntu Xenial): | |
status: | Invalid → Triaged |
importance: | Undecided → Low |
Changed in ubuntu-power-systems: | |
status: | Invalid → Triaged |
Changed in ubuntu-power-systems: | |
status: | Triaged → In Progress |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Released |
tags: | added: triage-g |
Changed in ubuntu-power-systems: | |
status: | Fix Released → Confirmed |
Changed in libvirt (Ubuntu Xenial): | |
status: | Incomplete → Confirmed |
Changed in ubuntu-power-systems: | |
assignee: | David Britton (davidpbritton) → Canonical Server Team (canonical-server) |
status: | Confirmed → Incomplete |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Confirmed |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Fix Released |
------- Comment From <email address hidden> 2017-08-10 09:35 EDT-------
From Nitesh:
------- ------- ------- ------- -
The following commit resolves the issue:
commit 77cb01bc0fec4d0 da02e1d4df75d28 870b0ef926
Author: Peter Krempa <email address hidden>
Date: Tue Sep 13 15:55:06 2016 +0200
numa: Rename virNumaGetHostN odeset and make it return only nodes with memory emoryNodeset and return only NUMA nodes which /bugzilla. redhat. com/show_ bug.cgi? id=1375268
Name it virNumaGetHostM
have memory installed. This is necessary as the kernel is not very happy
to set the memory cgroup setting for nodes which do not have any memory.
This would break vcpu hotplug with following message on such
configruation:
Invalid value '0,8' for 'cpuset.mems': Invalid argument
Resolves: https:/