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 864381 - Failed to set vcpu scheduler parameters after hotplug vcpu
Summary: Failed to set vcpu scheduler parameters after hotplug vcpu
Keywords:
Status: CLOSED DUPLICATE of bug 857013
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-09 09:55 UTC by hongming
Modified: 2012-10-09 14:03 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-09 14:03:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description hongming 2012-10-09 09:55:28 UTC
Description of problem:
Failed to set vcpu scheduler parameters after hotplug vcpu.  The following errors occur.
error: Unable to find vcpu cgroup for rhel6.2(vcpu: 1): No such file or directory


Version-Release number of selected component (if applicable):
libvirt-0.10.2-1.el6.x86_64
qemu-kvm-0.12.1.2-2.310.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.# virsh start rhel6.2
Domain rhel6.2 started

2.# virsh vcpucount rhel6.2
maximum      config        10
maximum      live          10
current      config         1
current      live           1

3.# virsh setvcpus rhel6.2 2

4.# virsh schedinfo rhel6.2
Scheduler      : posix
cpu_shares     : 2048
vcpu_period    : 1000000
vcpu_quota     : 18446744073709551
emulator_period: 1000000
emulator_quota : 18446744073709551

5.# virsh schedinfo rhel6.2 --set vcpu_quota=1000
Scheduler      : posix
error: Unable to find vcpu cgroup for rhel6.2(vcpu: 1): No such file or
directory

6.# ll /cgroup/cpu/libvirt/qemu/rhel6.2/vcpu1
ls: cannot access /cgroup/cpu/libvirt/qemu/rhel6.2/vcpu1: No such file
or directory


7.# vim /var/log/libvirtd.log
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupNew:617 : New group
/libvirt/qemu/rhel6.2/vcpu1
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 0:cpu at /cgroup/cpu in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 1:cpuacct at /cgroup/cpuacct in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 2:cpuset at /cgroup/cpuset in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 3:memory at /cgroup/memory in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 4:devices at /cgroup/devices in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 5:freezer at /cgroup/freezer in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupDetect:273 :
Detected mount/mapping 6:blkio at /cgroup/blkio in
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupMakeGroup:535 :
Make group /libvirt/qemu/rhel6.2/vcpu1
2012-09-20 03:22:18.687+0000: 1511: debug : virCgroupMakeGroup:560 :
Make controller /cgroup/cpu/libvirt/qemu/rhel6.2/vcpu1/
2012-09-20 03:22:18.687+0000: 1511: error : qemuSetVcpusBWLive:7745 :
Unable to find vcpu cgroup for rhel6.2(vcpu: 1): No such file or directory
2012-09-20 03:22:18.687+0000: 1511: debug : virDomainFree:2281 :
dom=0x7f852800dd70, (VM: name=rhel6.2,
uuid=17210b7f-6bcf-c46d-404e-9652796a93b9)
2012-09-20 03:22:18.687+0000: 1511: debug : virObjectUnref:135 :
OBJECT_UNREF: obj=0x7f852800dd70
2012-09-20 03:22:18.687+0000: 1511: debug : virObjectUnref:137 :
OBJECT_DISPOSE: obj=0x7f852800dd70
2012-09-20 03:22:18.687+0000: 1511: debug : virDomainDispose:225 :
release domain 0x7f852800dd70 rhel6.2 17210b7f-6bcf-c46d-404e-9652796a93b9
2012-09-20 03:22:18.687+0000: 1511: debug : virObjectUnref:135 :
OBJECT_UNREF: obj=0x7f851805b2f0


Actual result
Failed to set vcpu scheduler parameters after hotplug vcpu.

Expect result
Successfully set vcpu scheduler parameters after hotplug vcpu.

Additional info


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