Bug 717302 - flush vdsm.log to disk when a reboot is probable
Summary: flush vdsm.log to disk when a reboot is probable
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Eduardo Warszawski
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks: 712925
TreeView+ depends on / blocked
 
Reported: 2011-06-28 14:25 UTC by Daniel Paikov
Modified: 2013-07-04 07:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-12 15:55:58 UTC
oVirt Team: ---


Attachments (Terms of Use)
vdsm.log (861.21 KB, application/x-gzip)
2011-06-28 14:25 UTC, Daniel Paikov
no flags Details

Description Daniel Paikov 2011-06-28 14:25:38 UTC
Created attachment 510290 [details]
vdsm.log

When a host is rebooted using Power Management, the last few logs in vdsm.log might not appear in the file because they weren't written into the file quickly enough before the power was shut down. This makes it difficult to debug bugs such as bug #712925 since we can't see what happened during the few seconds before the reboot.


Usually it looks like this, with the "I am the actual vdsm" log appearing in the middle of the previous (pre-reboot) line, without a CRLF.

Thread-288197::DEBUG::2011-06-23 04:19:54,952::resourceManager::154::ResourceManager.Request::(__init__) ResName=`Storage.717104b3
-751b-4fee-bd62-adb324c7f31a`ReqID=`6961beff-285c-4a6c-87a3-67b9e5216776`::Request was made in '/usr/share/vdsm/storage/hsm.py' li
ne '1177' at 'public_getStoragePoolInfo'
Thread-288197::DEBUG::2011-06-23 04:19:54,MainThread::INFO::2011-06-23 04:23:54,309::vdsm::71::vds::(run) I am the actual vdsm 4.9-75

Comment 2 Dan Kenigsberg 2011-06-28 19:20:20 UTC
flushing log files too often may waste IO and slow down the process. it may be nice to add this as a feature, but I don't think we should push for it in 6.2.

have you tried running `while true; do sync; done`?

Comment 4 Itamar Heim 2013-03-12 15:55:58 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


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