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 509500

Summary: nodedev-list can hang libvirtd
Product: Red Hat Enterprise Linux 5 Reporter: zhanghaiyan <yoyzhang>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.4CC: virt-maint, xen-maint, yxie
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-08 11:31:57 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:

Description zhanghaiyan 2009-07-03 05:48:09 UTC
Description of problem:
Executing virsh nodedev-list will cause libvirt to go into an infinite loop.


Version-Release number of selected component (if applicable):
libvirt-0.6.3-13.el5
RHEL5.4-Server/Client-KVM
RHEL5.4-Server-Xen

How reproducible:
100%

Steps to Reproduce:
execute: 
# virsh nodedev-list computer

  
Actual results:
hang

Expected results:
List out all node devices

Additional info:

Comment 1 zhanghaiyan 2009-07-03 05:54:01 UTC
Update
Steps to Reproduce:
execute: 
# virsh nodedev-list --tree

Comment 2 Daniel Veillard 2009-07-07 14:21:53 UTC
I really can't reproduce this:

[root@test2 ~]# virsh nodedev-list --tree  
computer
  |
  +-pci_8086_104c
  |   |
  |   +-net_00_19_d1_2d_c0_45
  |     
  +-pci_8086_244e
  +-pci_8086_2812
  +-pci_8086_2822
  |   |
  |   +-pci_8086_2822_scsi_host
  |   +-pci_8086_2822_scsi_host_0
  |   +-pci_8086_2822_scsi_host_1
  |   +-pci_8086_2822_scsi_host_2
  |   +-pci_8086_2822_scsi_host_3
  |   |   |
...
  +-pci_8086_29a2
  +-pci_8086_29a3
    

[root@test2 ~]# rpm -q libvirt
libvirt-0.6.3-13.el5
[root@test2 ~]# 

  There is something missing here... note that 

virsh nodedev-dumpxml computer

hangs on that box, it's bug
  https://bugzilla.redhat.com/show_bug.cgi?id=509261
for which we have a fix in the pipeline, but that one
I can't reproduce ! Can you make sure you didn't mix the
2 issues, if no can you run libvirtd under valgrind or gdb
and then rerun the command, then report your findings,

  thanks

Daniel

Comment 3 Bill Burns 2009-07-07 17:24:59 UTC
*** Bug 509952 has been marked as a duplicate of this bug. ***

Comment 4 zhanghaiyan 2009-07-08 01:45:16 UTC
Only run command # virsh nodedev-list doesn't have this issue
If run command # virsh nodedev-list after run command # virsh nodedev-dumpxml computer will cause this issue.

Comment 5 Daniel Veillard 2009-07-08 11:31:57 UTC
Okay then it's a dup of 509261 which is fixed in libvirt-0.6.3-14.el5 and
should be on QA at this point. Just make sure you can't reproduce the issue
with that version,

  thanks,

Daniel

*** This bug has been marked as a duplicate of bug 509261 ***