Bug 538064

Summary: virt-df doesn't list running domains (but only on Xen)
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-17 14:06:15 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 Richard W.M. Jones 2009-11-17 14:00:30 UTC
Description of problem:

If I use virt-df on Xen (on RHEL 5.4) it doesn't show any
running domains.  It shows only shut down domains.

I can show a running domain _if_ I list the domain name
explicitly.  But not if I just use "virt-df" command on its
own, which is supposed to list all domains.

_However_ on KVM this works correctly!  "virt-df" lists
both inactive and running domains.

Although possibly this is a RHEL vs Fedora thing.

Version-Release number of selected component (if applicable):

Where it fails (RHEL 5.4):
  # virt-df --version
  1.0.76
  # uname -a
  Linux intel-mb 2.6.18-128.el5xen #1 SMP Wed Dec 17 12:01:40 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
  # virsh --version
  0.6.3

Where it works (Fedora 12):
  # virt-df --version
  1.0.78
  # uname -a
  Linux trick.home.annexia.org 2.6.31.1-56.fc12.x86_64 #1 SMP Tue Sep 29 16:16:22 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
  # virsh --version
  0.7.1

How reproducible:

Always on RHEL 5.4 / Xen.

Never on Fedora 12 / KVM.

Steps to Reproduce:
1. Make sure you have some guests, some running, some shut down.
2. virt-df
3.
  
Actual results:

Shows only the shut down domains (on RHEL 5.4 / Xen).

Expected results:

Should show all domains, regardless of state.

Additional info:

Comment 1 Richard W.M. Jones 2009-11-17 14:06:15 UTC
Ah, I see what this is.  It's a dupe of 538041.

Basically when we hit Domain-0, the error message:

  Domain-0 seems to have no disk devices

is in fact a die, _not_ a warn as I thought before,
so it bombs out before it gets around to displaying
the active domains.

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