Bug 834365
| Summary: | Improve error message when trying to change VM's processor count to 0 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Krempa <pkrempa> |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.3 | CC: | acathrow, dallan, dyasny, dyuan, honzhang, juzhang, mzhan, pkrempa, rwu, ydu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-0.9.13-3.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 832946 | Environment: | |
| Last Closed: | 2013-02-21 07:18:01 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
Peter Krempa
2012-06-21 16:28:38 UTC
Creating a clone of the original bug to track improvement of the error message. Error message improved upstream with two commits:
commit d91f3ef49741f1b9143865ff6ef9e2119fbeccc2
Author: Daniel P. Berrange <berrange>
Date: Fri May 25 18:41:07 2012 +0100
Santize the reporting of VIR_ERR_INVALID_ERROR
improving API error messages and
commit de924ca90a0ff1ad8adeab460761f65b7a742d72
Author: Peter Krempa <pkrempa>
Date: Thu Jun 21 18:34:32 2012 +0200
virsh: Improve error when trying to change vm's cpu count 0
to point out the error directly without the need for the user to understand API variable names.
Verify it using the following version. kernel-2.6.32-276.el6.x86_64 qemu-kvm-0.12.1.2-2.295.el6.x86_64 libvirt-0.9.13-3.el6.x86_64 Steps 1. # virsh dumpxml rhel6 ... <vcpu placement='static' current='1'>4</vcpu> ... 2. # virsh setvcpus rhel6 2 3. # virsh dumpxml rhel6 |grep cpu <vcpu placement='static' current='2'>4</vcpu> 4. # virsh setvcpus rhel6 0 error: Invalid number of virtual CPUs Results It is expected result.so move its status to VERIFIED. 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. http://rhn.redhat.com/errata/RHSA-2013-0276.html |