Bug 509261 - nodedev-dumpxml can hang libvirtd
Summary: nodedev-dumpxml can hang libvirtd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 509500 510681 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-01 21:33 UTC by Dave Allan
Modified: 2016-04-26 13:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:21:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix by Cole Robinson (378 bytes, patch)
2009-07-01 21:33 UTC, Dave Allan
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2009:1269 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2009-09-01 09:31:21 UTC

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


Note You need to log in before you can comment on or make changes to this bug.