Bug 579155 - libguestfs hangs if qemu doesn't start (in null vmchannel mode)
libguestfs hangs if qemu doesn't start (in null vmchannel mode)
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: 2010-04-02 17:56 EDT by Richard W.M. Jones
Modified: 2010-04-30 19:46 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-04-08 14:32:12 EDT
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 2010-04-02 17:56:17 EDT
Description of problem:

I was running virt-df [the --csv option is not important].  Since one
of the disks was inaccessible, I got an error.  That's not a problem,
but the fact that virt-df *hangs* after this error *is* a problem:

$ virt-df --csv
Virtual Machine,Filesystem,1K-blocks,Used,Available,Use%
qemu: could not open disk image /dev/vg_trick/RHEL620100329n0x64: Permission denied

(eventually you have to hit ^C)

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


How reproducible:


Steps to Reproduce:
1. Run virt-df as non-root.
Actual results:

If there are any inaccessible disks, virt-df will hang.

Expected results:

Should give an error, but not hang afterwards.

Additional info:

Basically this is a problem that libguestfs does not properly
handle the case where the qemu process dies before connecting
back to the libguestfs socket (in the "null vmchannel" mode).
Comment 1 Richard W.M. Jones 2010-04-08 13:52:10 EDT
A simple reproducer:

guestfish -- config -dieqemudie "" : run
Comment 3 Fedora Update System 2010-04-09 10:09:58 EDT
libguestfs-1.2.1-1.fc13 has been submitted as an update for Fedora 13.
Comment 4 Fedora Update System 2010-04-13 03:43:31 EDT
libguestfs-1.2.2-1.fc13 has been submitted as an update for Fedora 13.
Comment 5 Fedora Update System 2010-04-30 19:46:42 EDT
libguestfs-1.2.2-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

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