Bug 725240

Summary: [vdsm][libvirt]libvirt logrotate should be done more frequently
Product: Red Hat Enterprise Linux 6 Reporter: Moran Goldboim <mgoldboi>
Component: vdsmAssignee: Yotam Oron <yoron>
Status: CLOSED ERRATA QA Contact: Daniel Paikov <dpaikov>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.3CC: abaron, bazulay, danken, hateya, iheim, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.9-88 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:31:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Moran Goldboim 2011-07-24 14:59:42 UTC
Description of problem:
in current vdsm libvirt log configuration libvirt is generating lots of logs, sometimes logrotate isn't called frequent enough and the log is filling up all the hd.

 -rw-------. 1 root root 8.6G Jul 24 17:02 /var/log/libvirtd.log.1
-rw-------. 1 root root  34G Jul 24 17:57 /var/log/libvirtd.log


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


How reproducible:
happens several times

Steps to Reproduce:
1.run lots on vms on host using vdsm.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Moran Goldboim 2011-07-24 15:08:34 UTC
happened in vdsm-4.9-81.el6.x86_64

Comment 3 Dan Kenigsberg 2011-07-24 20:03:35 UTC
It is important to mention that this issue has appeared when the filesystem was full; the interesting question is why wasn't .1 log compressed. I would not be surprised if it turns out to be a logrotate bug.

On the other hand, it could make sense to run vdsm-logrotate crontab more often.

Comment 4 Dan Kenigsberg 2011-08-01 20:14:20 UTC
I cannot say that I love this patch, but it should do the trick

http://gerrit.usersys.redhat.com/773

Comment 6 Daniel Paikov 2011-08-08 10:48:32 UTC
Checked on 4.9-89.

Comment 7 errata-xmlrpc 2011-12-06 07:31:59 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/RHEA-2011-1782.html