Bug 998485

Summary: guestfish remote prints "libguestfs: error: waitpid (qemu): No child processes"
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, bfan, leiwang, linuxdev-bm, lsoft-mso-pj, ltroan, mbooth, moshiro, wshi, yoguma
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: QJ130807-012
Fixed In Version: libguestfs-1.22.6-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 998482 Environment:
Last Closed: 2014-06-13 11:44:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 998482    
Bug Blocks: 839484    

Description Richard W.M. Jones 2013-08-19 12:32:49 UTC
+++ This bug was initially created as a clone of Bug #998482 +++

Reported by: Kazuya Saito

Note for some reason that I cannot work out, this is only reproducible
in the libguestfs source directory.

(a) Checkout libguestfs from git and compile it in the usual way.

(b) make -C tests/guests check

(c) In one window, run:

  ./run ./fish/guestfish --listen --ro -a ./tests/guests/debian.img -i

This will print out (the number will be different):

  GUESTFISH_PID=13170; export GUESTFISH_PID

(d) In another window, run:

  GUESTFISH_PID=13170 ./run ./fish/guestfish --remote exit

In the first window you'll see an error:

  libguestfs: error: waitpid (qemu): No child processes

That is a bug.

Comment 3 Can Zhang 2013-11-08 06:46:25 UTC
I installed libguestfs-1.22.2-1.el7, and ran `LIBGUESTFS_BACKEND=direct guestfish --listen --ro -a RHEL-Server-7.0-64-hvm.raw -i -v` in one terminal. Then opened a new terminal window and run `GUESTFISH_PID=8403 guestfish --remote exit`. And I saw error outputs from the first terminal:

# guestfish(8403): exit
libguestfs: closing guestfs handle 0x7fe56a024180 (state 2)
guestfsd: main_loop: proc 73 (mount_ro) took 0.10 seconds
guestfsd: main_loop: new request, len 0x28
umount /sysroot/boot
umount /sysroot
fsync /dev/sda
libguestfs: sending SIGTERM to process 8385
libguestfs: error: waitpid (qemu): No child processes
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsOIXqJe

And in a newer version, libguestfs-1.22.6-15.el7, no error message outputs.

Comment 4 Ludek Smid 2014-06-13 11:44:36 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.