Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 509261

Summary: nodedev-dumpxml can hang libvirtd
Product: Red Hat Enterprise Linux 5 Reporter: Dave Allan <dallan>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.4CC: nzhang, sghosh, shaohui.zheng, syeghiay, virt-maint, xen-maint, yoyzhang
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 09:21:03 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:
Attachments:
Description Flags
Fix by Cole Robinson none

Description Dave Allan 2009-07-01 21:33:26 UTC
Created attachment 350202 [details]
Fix by Cole Robinson

Description of problem:
Executing virsh nodedev-dumpxml for any device other than a scsi host will cause libvirt to go into an infinite loop.

Version-Release number of selected component (if applicable):
libvirt-0.6.3-13.el5

How reproducible:
100%

Steps to Reproduce:
1. execute: 
virsh nodedev-dumpxml computer
  
Actual results:
hang

Expected results:
XML should be displayed

Comment 1 Daniel Veillard 2009-07-01 21:38:35 UTC
Fix is a two liner already commited upstream. this is a rather critical bug,
which consume a full CPU loop and can be activated by non-root users.

https://www.redhat.com/archives/libvir-list/2009-July/msg00023.html

Daniel

Comment 5 Daniel Veillard 2009-07-07 19:13:34 UTC
libvirt-0.6.3-14.el5 was built in dist-5E-qu-candidate with the fix,

Daniel

Comment 8 Daniel Veillard 2009-07-08 11:31:57 UTC
*** Bug 509500 has been marked as a duplicate of this bug. ***

Comment 10 Nan Zhang 2009-07-09 08:13:00 UTC
Sorry, please ignore Comment #9.

This bug has been fixed with libvirt 0.6.3-14.el5 on RHEL-5.4. Set status to VERIFIED.

# virsh nodedev-dumpxml computer
<device>
  <name>computer</name>
  <capability type='system'>
    <product>OptiPlex 740 Enhanced </product>
    <hardware>
      <vendor>Dell Inc.</vendor>
      <serial>F77GM2X</serial>
      <uuid>44454c4c-3700-1037-8047-c6c04f4d3258</uuid>
    </hardware>
    <firmware>
      <vendor>Dell Inc.</vendor>
      <version>2.1.9</version>
      <release_date>12/04/2008</release_date>
    </firmware>
  </capability>
</device>

Comment 11 Cole Robinson 2009-07-10 11:51:59 UTC
*** Bug 510681 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2009-09-02 09:21:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1269.html