Bug 538064 - virt-df doesn't list running domains (but only on Xen)
virt-df doesn't list running domains (but only on Xen)
Status: CLOSED DUPLICATE of bug 538041
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Richard W.M. Jones
Depends On:
  Show dependency treegraph
Reported: 2009-11-17 09:00 EST by Richard W.M. Jones
Modified: 2010-03-16 13:25 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-11-17 09:06:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2009-11-17 09:00:30 EST
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
  # 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

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

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
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 09:06:15 EST
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 ***

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