Bug 996552
Summary: | Incorrect return value when setvcpus using invalid vcpu number. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Peter Krempa <pkrempa> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, codong, dyuan, hliu, jiahu, lsu, mzhan, pkrempa |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.1.1-3.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 996466 | Environment: | |
Last Closed: | 2014-06-13 09:29:56 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: | |||
Bug Depends On: | 996466 | ||
Bug Blocks: |
Description
Peter Krempa
2013-08-13 12:31:44 UTC
This bug can not be reproduced on libvirt-1.1.1-3.el7.x86_64. Version: libvirt-1.1.1-3.el7.x86_64 qemu-kvm-1.5.3-2.el7.x86_64 kernel-3.10.0-14.el7.x86_64 Steps: 1. Set a invalid value to domain. [root@localhost ~]# virsh list --all Id Name State ---------------------------------------------------- - r6 shut off [root@localhost ~]# virsh setvcpus r6 --count -1 --config error: Invalid number of virtual CPUs [root@localhost ~]# echo $? 1 [root@localhost ~]# virsh setvcpus r6 --count df --config error: Invalid number of virtual CPUs [root@localhost ~]# echo $? 1 [root@localhost ~]# virsh setvcpus r6 --count 3 --config error: invalid argument: requested vcpus is greater than max allowable vcpus for the domain: 3 > 2 [root@localhost ~]# echo $? 1 [root@localhost ~]# virsh setvcpus r6 --count 0 --config error: Invalid number of virtual CPUs [root@localhost ~]# echo $? 1 2. Set a vaild value to domain. [root@localhost ~]# virsh setvcpus r6 --count 1 --config [root@localhost ~]# echo $? 0 We can get expected results, so changed to verified. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |