Bug 867699
| Summary: | Improve the error message when pin guest cpu to the offline host cpu | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | yuping zhang <yupzhang> |
| Component: | libvirt | Assignee: | Martin Kletzander <mkletzan> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | acathrow, dallan, dyasny, dyuan, honzhang, jyang, mzhan, rwu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-05 14:55:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
yuping zhang
2012-10-18 06:37:02 UTC
The warning message "Ignore vcpupin for not onlined vcpus" you are refering to is related to this kind of configuration: ... <vcpu placement='static' current='1'>2</vcpu> <cputune> <vcpupin vcpu='1' cpuset='0'/> </cputune> ... As you can see, the <vcpupin> is addressing a VCPU that is not currently online on the guest. Host CPUs are being checked by the kernel when setting cgroups, hence leading to your error message to appear. In case you have nothing else and I didn't miss anything, I propose to close this BZ as NOTABUG. (In reply to comment #2) > The warning message "Ignore vcpupin for not onlined vcpus" you are refering > to is related to this kind of configuration: > > ... > <vcpu placement='static' current='1'>2</vcpu> > <cputune> > <vcpupin vcpu='1' cpuset='0'/> > </cputune> > ... > > As you can see, the <vcpupin> is addressing a VCPU that is not currently > online on the guest. Host CPUs are being checked by the kernel when setting > cgroups, hence leading to your error message to appear. > > In case you have nothing else and I didn't miss anything, I propose to close > this BZ as NOTABUG. Hi Martin, I still tried this : #virsh edit guest ... <vcpu placement='static' current='1'>4</vcpu> <cputune> <vcpupin vcpu='1' cpuset='0'/> </cputune> ... Then save,after that,run #virsh dumpxml guest ... <vcpu placement='static' current='1'>4</vcpu> <cputune> </cputune> ... The line <vcpupin vcpu='1' cpuset='0'/> will be removed.The error message still can not pop up. Did you check on the server log? Also beware this message is not exactly an error, just a warning. (In reply to comment #4) > Did you check on the server log? Also beware this message is not exactly an > error, just a warning. Hi Martin, I check the log,it has this message when save the XML file: #cat /var/log/libvirt/libvirtd.log|grep vcpus 2012-10-19 08:58:05.560+0000: 83902: warning : virDomainDefParseXML:8863 : Ignore vcpupin for not onlined vcpus Also,I did this testing.Start a guest,and the run vcpupin command: #virsh edit guest ... <vcpu placement='static' current='1'>4</vcpu> ... # virsh start guest # virsh vcpupin guest 1 0 error: vcpupin: Invalid vCPU number. All of this is expected result. Closing as NOTABUG, because everything is working as expected and no patch was needed. Feel free to reopen if you disagree. |