Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Failed to start domain with specified cputune and cpuset .
Version-Release number of selected component (if applicable):
libvirt-0.10.2-42.el6.x86_64
kernel-2.6.32-486.el6.x86_64
qemu-kvm-0.12.1.2-2.427.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
# virsh dumpxml r6.5|grep cpu
<vcpu placement='static' cpuset='0-1'>4</vcpu>
# virsh setvcpus r6.5 1 --maximum --config
# virsh destroy r6.5
Domain r6.5 destroyed
# virsh dumpxml r6.5|grep cpu
<vcpu placement='static' cpuset='0-1'>1</vcpu>
# virsh start r6.5
error: Failed to start domain r6.5
error: cannot set CPU affinity on process 32722: No such process
Actual results:
Failed to start domain with specified cputune and cpuset
Expected results:
Successfully start the domain
Additional info:
Fixed with:
commit 482f4e596fcecff7a9b6ca3ee2b946acfdaf0823
Author: Peter Krempa <pkrempa>
Date: Fri Aug 15 16:41:47 2014 +0200
qemu: process: Pin on per-vcpu basis instead of per-vcpupin element
Pin existing vcpus rather than existing vcpu pinning infos. This
increases the complexity of the lookup, but avoids pinning cpus that are
not enabled actually.
commit 60df621f75af6e29d721d95a738c8860eed5590e
Author: Peter Krempa <pkrempa>
Date: Fri Aug 15 16:28:58 2014 +0200
qemu: cpu: unplug: Remove vcpu pinning on cold cpu unplug
Remove the pinning info when removing to CPU, otherwise when the VM will
be started our code will try to pin non-existing vcpus as the definition
wasn't updated.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1129372
commit 64bbf4c33d8ad6b5ade5d538d79d15d4cae27a15
Author: Peter Krempa <pkrempa>
Date: Thu Aug 14 14:38:06 2014 +0200
conf: Refactor virDomainVcpuPinDefParseXML
Tidy up control flow, change boolean argument to use 'bool', improve
error message in case the function is used to parse emulator pinning
info and avoid a few temp variables that made no sense.
Also when the function is called to parse emulator pinning info, there's
no need to check the processor ID in that case.
commit cb8a94bfa037b12b1c1896bd3c02f5bf6746d9e1
Author: Peter Krempa <pkrempa>
Date: Thu Aug 14 14:20:37 2014 +0200
conf: cpupin: Remove useless checking of vcpupin element count
The check doesn't make much sense as right below it the entries are
either checked for duplicity or ignored in some cases. Having this check
doesn't actually forbid passing invalid values.
v1.2.7-150-g482f4e5