Bug 1057873

Summary: libguestfs df/ subdirectory tests fail occasionally
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
log file from failing test
none
df.log none

Description Richard W.M. Jones 2014-01-25 15:46:02 UTC
Created attachment 855418 [details]
log file from failing test

Description of problem:

The libguestfs test suite for the 'virt-df' tool fails occasionally.

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

libguestfs 1.25.28 (but also earlier versions)

How reproducible:

100%

Steps to Reproduce:

1. Checkout, build libguestfs from git.

2. Do a full 'make check' first.

3. Then run the following command which does the virt-df
tests repeatedly until they fail:

while make -C df check LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 >& /tmp/log
do
  echo -n .
done

Actual results:

After many iterations you will see a failure.  See the log
file attached.

Expected results:

Should never fail.

Additional information:

I believe this test fails in more than one different way.
The log file shows one type of failure.

Comment 1 Richard W.M. Jones 2014-01-25 15:47:32 UTC
Potentially related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1025942
(maybe even a dupe) but I believe the failures are different.

Comment 2 Richard W.M. Jones 2014-01-25 15:50:53 UTC
I should have checked the log file.  The failure in this log file
is a dupe of the libvirt monitor timeout bug 987088.

Comment 3 Richard W.M. Jones 2014-01-28 09:06:36 UTC
Created attachment 856439 [details]
df.log

Log file of a failure after about 200 runs of make check.

The error seems to be:
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x7f85b0002b30: child process died

It's not clear what the earlier failure was, but as this is all
running using KVM on a fast machine it shouldn't have been a timeout.