Bug 692745

Summary: RFE: Enhance the amount of debug available from libvirt in case of crash
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Veillard <veillard>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: eblake, jdenemar, mjenner, mzhan, yoyzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: libvirt-0.9.1-1.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:03:56 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:    
Bug Blocks: 693512    
Attachments:
Description Flags
Comment none

Description Daniel Veillard 2011-04-01 02:31:07 UTC
Description of problem: Enhance the amount of debug available from libvirt
in case of crash by keeping a ring buffer of internal debug logs and dumping
it when fatal signal or user requests it

Needed to debug complex cases of daemon hang or crash

Comment 1 Daniel Veillard 2011-04-01 02:34:48 UTC
Already commited upstream, it will be in 0.9.0,

http://libvirt.org/git/?p=libvirt.git;a=commit;h=a9f35c4863623fa07563f8ab3a25a20ea9f79fba
and related other commits

Daniel

Comment 2 Jiri Denemark 2011-05-19 09:12:04 UTC
To test this run libvirtd without enabling debug logs (e.g., in default configuration), play a bit with virsh, and send SIGSEGV to libvirtd. Now you should see "Caught Segmentation violation dumping internal log buffer:" message appended to /var/log/libvirt/libvirtd.log followed by a bunch of debugging messages enclosed between "====== start of log =====" and "====== end of log =====" lines.

Comment 3 zhanghaiyan 2011-05-24 07:36:08 UTC
Created attachment 915258 [details]
Comment

(This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).

Comment 5 Min Zhan 2011-07-18 07:28:25 UTC
Move to VERIFIED according to Comment 3

Comment 6 errata-xmlrpc 2011-12-06 11:03:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1513.html