Bug 864381 - Failed to set vcpu scheduler parameters after hotplug vcpu
Failed to set vcpu scheduler parameters after hotplug vcpu
Status: CLOSED DUPLICATE of bug 857013
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
6.4
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Osier Yang
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-09 05:55 EDT by hongming
Modified: 2012-10-09 10:03 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-09 10:03:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description hongming 2012-10-09 05:55:28 EDT
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.