Bug 768268
Summary: | Libvirt fail to detach PF/VF device when the address of pci device described as decimalism | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yuping zhang <yupzhang> |
Component: | libvirt | Assignee: | Osier Yang <jyang> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.3 | CC: | acathrow, ajia, dallan, dyuan, mzhan, rwu, zhpeng |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.10-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
No documentation needed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 06:39:09 UTC | Type: | --- |
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: | |||
Bug Blocks: | 748405 |
Description
yuping zhang
2011-12-16 08:17:28 UTC
This issue is introduced in commit ea7182c2, the cmdDetachDevice function uses new vshCompleteXMLFromDomain function to find such device in domain. Alex commit c001eb5bbefd42b3976fe95ce7b9c53dd69a49a0 Author: Osier Yang <jyang> Date: Tue Feb 7 23:56:08 2012 +0800 virsh: Do not check the input XML at virsh layer for cmdDetachDevice Any device XML doesn't use the same order as libvirt generates, or uses decimal for attributes like "slot" of "<address>" will cause device detaching to fail, as virsh compares the XML simply earlier in strict manner before internal parsing. This is regression introduced by ea7182c. Verified with libvirt-0.9.10-0rc2.el6.x86_64.rpm According steps of comment 0, tested with libvirt-0.9.10-1.el6.x86_64 and it passed. virsh # detach-device rhel6 PF.xml Device detached successfully Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No documentation needed. 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-2012-0748.html |