Bug 710404 - virsh start guest got "Out of space while reading console log output" errors
Summary: virsh start guest got "Out of space while reading console log output" errors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 681492
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-03 10:37 UTC by Alex Jia
Modified: 2011-07-04 09:43 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 681492
Environment:
Last Closed: 2011-06-21 09:17:08 UTC
Target Upstream Version:


Attachments (Terms of Use)
details (1.77 KB, text/plain)
2011-06-03 10:47 UTC, Alex Jia
no flags Details

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


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