Bug 207609 - qemu-dm logfile name should be based on VM name, instead of PID
Summary: qemu-dm logfile name should be based on VM name, instead of PID
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xen
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Xen Maintainance List
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-21 20:50 UTC by Daniel Berrangé
Modified: 2008-03-20 00:33 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-20 00:33:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Use name instead of PID (2.86 KB, patch)
2007-06-01 00:56 UTC, Daniel Berrangé
no flags Details | Diff

Description Daniel Berrangé 2006-09-21 20:50:48 UTC
Description of problem:
Every HVM guest run spawns a qemu-dm process to manage the device model. This
process saves logs into a file /var/log/xen/qemu-dm-<PID>.log. There are two
problems with this. Firfst there is an unbounded number of log files created &
never cleaned, a minor point. More importantly & the point of this ticket, is
that there's no way to correlate the log file back to the domain being run.

If a HVM guest crashes or otherwise misbehaves it would be desirable to capture
the qemu-dm logfile, however, there's no easy way find out which for many log
files corresponds to the domain being run. This problem would be trivially
solved if the log file was named based on the guest name, rather than PID of the
qemu-dm process. This would also cut down on the number of log files created,
since the same log would be used each time a domain was booted.

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

How reproducible:
Always

Steps to Reproduce:
1. Create an HVM guest called 'demo'
2.
3.
  
Actual results:
Log file is /var/log/xen/qemu-dm-<some random PID number>.log

Expected results:
Log file is /var/log/xen/qemu-dm-demo.log

Additional info:
The logfile naming scheme appears to be set in the file tools/ioemu/vl.c

Comment 1 Daniel Berrangé 2007-06-01 00:56:32 UTC
Created attachment 155854 [details]
Use name instead of PID

This patch is against xen-unstable.hg shortly after xen-3.1.0

Comment 2 Red Hat Bugzilla 2007-07-24 23:58:57 UTC
change QA contact


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