Bug 1019471 - ha agent log files rotate frequency should be changed.
Summary: ha agent log files rotate frequency should be changed.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-ha
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.3.0
Assignee: Greg Padgett
QA Contact: Artyom
URL:
Whiteboard: sla
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-15 19:38 UTC by Leonid Natapov
Modified: 2016-06-12 23:16 UTC (History)
8 users (show)

Fixed In Version: ovirt-hosted-engine-ha-0.1.0-0.6.beta1.el6ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 16:51:07 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0080 0 normal SHIPPED_LIVE new package: ovirt-hosted-engine-ha 2014-01-21 21:00:07 UTC
oVirt gerrit 20523 0 None MERGED log: set default log level to INFO 2020-12-17 22:10:35 UTC
oVirt gerrit 21318 0 None MERGED agent, broker, lib: less logging at INFO level 2020-12-17 22:10:04 UTC

Description Leonid Natapov 2013-10-15 19:38:10 UTC
ha agent log files rotate frequency should be changed. Now agent log file rotates when its size reached 4 Mb (as i can see). It happens ~ every 25-30 minutes and it limited to 4 log files. log.1 log.2 log.4 log.4. After that it's written again so it's impossible to see agent logs few hours back.

Comment 1 Greg Padgett 2013-10-25 15:20:07 UTC
Note that the linked patch to resolve this bug doesn't alter the log rotation settings, but instead lowers the rotation frequency by changing the default log level from DEBUG to INFO.

Comment 2 Greg Padgett 2013-10-28 22:03:56 UTC
Merged Change-Id: I2cb489d4f415bd31b2023838832deb13bd1984e9

Comment 4 Artyom 2013-10-30 16:07:58 UTC
Provide version where fix already included please and also what size and what number of logs must appear in fixed version

Comment 5 Artyom 2013-11-07 12:30:49 UTC
Checked on ovirt-hosted-engine-ha-0.1.0-0.4.beta1.el6ev.noarch
Still the same situation as described in description of bug

Comment 6 Greg Padgett 2013-11-08 17:33:40 UTC
(In reply to Artyom from comment #5)
> Checked on ovirt-hosted-engine-ha-0.1.0-0.4.beta1.el6ev.noarch
> Still the same situation as described in description of bug

Artyon, can you verify that the /etc/ovirt-hosted-engine-ha/*-log.conf files have '[logger_root] > level=INFO' ?  The logging config files are marked as "noreplace" in the rpm spec file, so if this was an upgrade instead of fresh install, you may have some .rpmnew files with the proper configuration.

Comment 7 Artyom 2013-11-10 05:45:44 UTC
Yes two conf files, agent-log and also broker-log, have level=INFO under [logger_root]

Comment 8 Greg Padgett 2013-11-16 01:05:56 UTC
(In reply to Artyom from comment #7)
> Yes two conf files, agent-log and also broker-log, have level=INFO under
> [logger_root]

Thanks.  On its way is another patch set that will make the log activity more to the point.

Comment 9 Greg Padgett 2013-11-18 14:03:13 UTC
Merged Change-Id: I8b4614a6ea23c2813c0341e03171328e24f148c8

Comment 10 Artyom 2013-11-21 17:08:08 UTC
Can you please say what desired behavior, in version ovirt-hosted-engine-ha-0.1.0-0.6.beta1.el6ev.noarch, I can see that size of logs still 4mb, but it more than 4 logs file(for example agent.log.5)

Comment 11 Greg Padgett 2013-11-21 20:28:51 UTC
(In reply to Artyom from comment #10)
> Can you please say what desired behavior, in version
> ovirt-hosted-engine-ha-0.1.0-0.6.beta1.el6ev.noarch, I can see that size of
> logs still 4mb, but it more than 4 logs file(for example agent.log.5)

Main goal in this version was to reduce rotation frequency by reducing unnecessary logging by the agent and broker.  Primarily, I moved some log messages to DEBUG level, and made others get logged less frequently--only when changed or every ~15 minutes.  Combined with raising the number of log files to 8, we should now get much better log retention.

Comment 12 Artyom 2013-11-25 10:22:26 UTC
Verified on ovirt-hosted-engine-ha-0.1.0-0.6.beta1.el6ev.noarch.
I see that each log takes about 9 hours of monitoring(if no errors), and I also that we have now 8 log files.

Comment 13 Charlie 2013-11-28 01:42:08 UTC
This bug is currently attached to errata RHEA-2013:15591. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to 
minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 14 Greg Padgett 2013-12-06 17:57:47 UTC
ovirt-hosted-engine-ha is a new package; does not need errata for bugs during its development.

Comment 15 errata-xmlrpc 2014-01-21 16:51:07 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-2014-0080.html


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