Red Hat Bugzilla – Bug 212081
XenD overwrites existing xend-debug.log data after restart
Last modified: 2007-11-30 17:07:36 EST
Description of problem:
When XenD opens its debug log file /var/log/xend-debug.log it only specifies
O_WRONLY | O_CREAT for its open mode. This means that it starts writing new log
messages at the beginning of the log file, rather than the end. So the log file
gets a whole mix of log messages in non-sequential order, making it essentially
useless. The fix is to use either O_APPEND or O_TRUNC when opening the log file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start xend
2. Start a guest domain
3. Examine contents of /var/log/xen/xend-debug.log
4. Shutdown guest
5. Restart xend
6. Start guest again
7. Look at xend-debug.log again
New messages are before old messages in the log file
Log messages are sequentially ordered
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux release. Product Management has requested further review
of this request by Red Hat Engineering. This request is not yet committed for
inclusion in release.
Patch is upstream now
QE ack for RHEL5.
A package has been built which should help the problem described in
this bug report. This report is therefore being closed with a resolution
of CURRENTRELEASE. You may reopen this bug report if the solution does
not work for you.