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.
Bug 1316371 - libvirt auto remove the vcpupin config when cold-unplug vcpu
Summary: libvirt auto remove the vcpupin config when cold-unplug vcpu
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 06:13 UTC by Luyao Huang
Modified: 2016-11-03 18:39 UTC (History)
3 users (show)

Fixed In Version: libvirt-1.3.3-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-03 18:39:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2577 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2016-11-03 12:07:06 UTC

Description Luyao Huang 2016-03-10 06:13:24 UTC
Description of problem:
libvirt auto remove the vcpupin config when cold-unplug vcpu

Version-Release number of selected component (if applicable):
v1.3.2-98-gadefc56

How reproducible:
100%

Steps to Reproduce:
1.
# virsh dumpxml rhel7.0-rhel

  <vcpu placement='static' cpuset='1-3'>4</vcpu>

2.
# virsh vcpupin rhel7.0-rhel --config
VCPU: CPU Affinity
----------------------------------
   0: 1-3
   1: 1-3
   2: 1-3
   3: 1-3

3.
# virsh vcpupin rhel7.0-rhel 3 3 --config

4.
# virsh vcpupin rhel7.0-rhel --config
VCPU: CPU Affinity
----------------------------------
   0: 1-3
   1: 1-3
   2: 1-3
   3: 3

5.
# virsh setvcpus rhel7.0-rhel 3 --config

6.
# virsh vcpupin rhel7.0-rhel --config
VCPU: CPU Affinity
----------------------------------
   0: 1-3
   1: 1-3
   2: 1-3
   3: 1-3

Actual results:
libvirt auto remove the vcpupin config when cold-unplug vcpu

Expected results:
libvirt support cpu inactive bind now, so this extra step (i mean help to remove vcpupin for inactive vcpu) is not correct now

Additional info:

Comment 2 Peter Krempa 2016-03-10 15:03:17 UTC
Fixed upstream:

commit ab3f1428a6ae626e85da9b84db027bfb9132138a
Author: Peter Krempa <pkrempa>
Date:   Thu Mar 10 09:37:08 2016 +0100

    qemu: cpu: Don't remove pinning of cold-unplugged cpu
    
    After adding support for offline vcpu pinning the code that removes the
    pinning for cpu cold-unplug was forgotten. This fixes up commit 02ae21d

v1.3.2-103-gab3f142

Comment 3 Mike McCune 2016-03-28 23:19:36 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Jingjing Shao 2016-08-09 03:31:46 UTC
Verify this issue as below
# rpm -q libvirt
libvirt-2.0.0-3.el7.x86_64

# virsh dumpxml r7.2 | grep vcpu 
  <vcpu placement='static' cpuset='1-3'>4</vcpu>

# virsh vcpupin r7.2  3 3 --config

# virsh vcpupin  r7.2  --config
VCPU: CPU Affinity
----------------------------------
   0: 1-3
   1: 1-3
   2: 1-3
   3: 3

# virsh setvcpus r7.2  3 --config

# virsh vcpupin r7.2  --config
VCPU: CPU Affinity
----------------------------------
   0: 1-3
   1: 1-3
   2: 1-3
   3: 3


The result is as expect, so change the status to verified

Comment 7 errata-xmlrpc 2016-11-03 18:39:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2577.html


Note You need to log in before you can comment on or make changes to this bug.