Red Hat Bugzilla – Bug 579155
libguestfs hangs if qemu doesn't start (in null vmchannel mode)
Last modified: 2010-04-30 19:46:42 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
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):
Steps to Reproduce:
1. Run virt-df as non-root.
If there are any inaccessible disks, virt-df will hang.
Should give an error, but not hang afterwards.
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).
A simple reproducer:
guestfish -- config -dieqemudie "" : run
libguestfs-1.2.1-1.fc13 has been submitted as an update for Fedora 13.
libguestfs-1.2.2-1.fc13 has been submitted as an update for Fedora 13.
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.