Bug 725240 - [vdsm][libvirt]libvirt logrotate should be done more frequently
Summary: [vdsm][libvirt]libvirt logrotate should be done more frequently
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: rc
: ---
Assignee: Yotam Oron
QA Contact: Daniel Paikov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-24 14:59 UTC by Moran Goldboim
Modified: 2013-07-04 07:49 UTC (History)
6 users (show)

Fixed In Version: vdsm-4.9-88
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:31:59 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

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


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