Bug 1025189

Summary: daily log rotate is not enough when engine log files are flooded with messages (debug mode)
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engineAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, alonbl, dfediuck, didi, iheim, lpeer, oourfali, oschreib, pstehlik, Rhev-m-bugs, sbonazzo, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-06 07:55:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine_log none

Description Ilanit Stein 2013-10-31 08:14:39 UTC
Description of problem:

The daily log rotate is not enough, for example  when configuring debug mode,  and in parallel messages flood the log.

On a setup with little space, after log was filled, and caused 100% of disk space,
Postgresql service crashed (DB connection lost).

Please consider some alternative mechanism for log rotate, in which log size    
is also taken under consideration.

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

Comment 1 Ilanit Stein 2013-10-31 08:23:49 UTC
Created attachment 817748 [details]
engine_log

Comment 2 Ilanit Stein 2013-10-31 08:51:39 UTC
ls -ltrh
total 850M
drwxr-xr-x. 2 root  root  4.0K Sep  5 22:27 ovirt-image-uploader
drwxr-xr-x. 2 root  root  4.0K Sep  7 17:09 ovirt-log-collector
drwxr-xr-x. 2 ovirt ovirt 4.0K Oct 24 16:51 notifier
drwxr-xr-x  2 ovirt ovirt 4.0K Oct 24 16:51 dump
drwxr-xr-x. 2 root  root  4.0K Oct 28 11:08 ovirt-iso-uploader
drwxr-xr-x. 2 root  root  4.0K Oct 30 12:17 setup
drwxr-xr-x. 2 ovirt ovirt 4.0K Oct 30 13:00 host-deploy
-rw-r--r--  1 root  root  6.8K Oct 30 13:04 engine-manage-domains.log
-rw-r--r--. 1 root  root  540K Oct 30 13:04 engine-config.log
-rw-r--r--. 1 ovirt ovirt    0 Oct 31 09:26 console.log
-rw-r--r--. 1 ovirt ovirt  875 Oct 31 09:26 boot.log
-rw-r--r--. 1 ovirt ovirt 247K Oct 31 09:26 redhat-support-plugin-rhev.log
-rw-r--r--. 1 ovirt ovirt 136M Oct 31 10:44 engine.log
-rw-r--r--. 1 ovirt ovirt 662M Oct 31 10:44 server.log

Comment 3 Alon Bar-Lev 2013-11-04 07:51:32 UTC
Administrator is more than welcome to set logrotate service at higher interval.

Comment 4 Sandro Bonazzola 2013-11-06 07:55:51 UTC
(In reply to Alon Bar-Lev from comment #3)
> Administrator is more than welcome to set logrotate service at higher
> interval.

Closing as not a bug as per comment #3.

Comment 5 Yedidyah Bar David 2013-11-10 06:40:16 UTC
See also the discussion in bug #948481 which triggered the move to logrotate.