Bug 710404

Summary: virsh start guest got "Out of space while reading console log output" errors
Product: Red Hat Enterprise Linux 6 Reporter: Alex Jia <ajia>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2CC: ajia, berrange, dallan, dyuan, eblake, jdenemar, jyang, mshao, mzhan, rwu, vbian, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 681492 Environment:
Last Closed: 2011-06-21 09:17:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 681492    
Bug Blocks:    
Attachments:
Description Flags
details none

Comment 1 Alex Jia 2011-06-03 10:44:31 UTC
I still met the above issue on rhel6.1 with libvirt-0.8.7-18.el6.src.rpm when I used lcov to test libvirt codes coverage by virsh command.

Please see attachment for reproduce steps.

Comment 2 Alex Jia 2011-06-03 10:47:49 UTC
Created attachment 502781 [details]
details

Comment 3 Jiri Denemark 2011-06-03 11:55:07 UTC
Since we can't detect which messages come from qemu, we are filtering out libvirt debug messages to get qemu's output. In your case there's a lot of noise in the log file that is not filtered out, which results in the error.

Comment 6 Daniel Berrangé 2011-06-21 09:17:08 UTC
These messages causing problems come from 'lcov', which is a test coverage program. This is not something that is ever enabled in production builds shipped by OS distros. We already filter out debug messages libvirt generates, and if QEMU ever generates too much debug output on startup, QEMU would need fixing. So I don't consider there to be an outstanding libvirt bug to deal with here, since using 'lcov' is not a real world scenario.

Comment 7 Alex Jia 2011-06-22 05:37:40 UTC
(In reply to comment #6)
> These messages causing problems come from 'lcov', which is a test coverage
> program. This is not something that is ever enabled in production builds
> shipped by OS distros. We already filter out debug messages libvirt generates,
> and if QEMU ever generates too much debug output on startup, QEMU would need
> fixing. So I don't consider there to be an outstanding libvirt bug to deal with
> here, since using 'lcov' is not a real world scenario.

Hi Daniel,
Thanks for your comment, I know you mean. 

Unfortunately, it's a bad news for libvirt QE, we want to add some 'effective' test cases to cover libvirt source code according to lcov test result, now, it seems we can't do that.

BTW, KVM QE also use 'lcov' to test qemu/kvm and kernel code coverage, however, they haven't met this kind of case, so I think it's not a qemu issue.


Alex

Comment 8 Daniel Berrangé 2011-06-22 09:13:33 UTC
NB Those lcov messages are telling you that lcov can't create its data files. If you solve the problems lcov is reporting, then those messages wouldn't be polluting the logs either, and everything would still work.

Comment 9 Dave Allan 2011-06-24 17:06:33 UTC
Alex, Daniel is telling you that you have a problem with your configuration of the lcov tool which is causing the behavior you've reported here as a bug against libvirt.  You need to fix your lcov configuration so that it doesn't log large numbers of messages similar to:

profiling:/root/rpmbuild:Cannot create directory
profiling:/root/rpmbuild/BUILD/libvirt-0.8.7/src/.libs/libvirt_util_la-authhelper.gcda:Skip

which are filling up libvirt's buffer.  Agreed that this is neither a libvirt nor a qemu bug.

Comment 10 Alex Jia 2011-06-27 02:16:09 UTC
(In reply to comment #9)
> Alex, Daniel is telling you that you have a problem with your configuration of
> the lcov tool which is causing the behavior you've reported here as a bug
> against libvirt.  You need to fix your lcov configuration so that it doesn't
> log large numbers of messages similar to:
> 
> profiling:/root/rpmbuild:Cannot create directory
> profiling:/root/rpmbuild/BUILD/libvirt-0.8.7/src/.libs/libvirt_util_la-authhelper.gcda:Skip
> 
> which are filling up libvirt's buffer.  Agreed that this is neither a libvirt
> nor a qemu bug.

Hi Daniel and Dave,
I am trying to avoid these error information from lcov, thanks for your nice comments.


Alex