Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 998576

Summary: rhevm-log-collector - log file overwritten at each execution
Product: Red Hat Enterprise Virtualization Manager Reporter: Sandro Bonazzola <sbonazzo>
Component: ovirt-engine-log-collectorAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, iheim, knesenko, kroberts, Rhev-m-bugs, sbonazzo, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-log-collector-3.3.0-0.2.rc.el6ev Doc Type: Bug Fix
Doc Text:
Each log collection overwrote the existing log file. This made debugging issues difficult, especially when multiple attempts were executed. Now, log messages are written into timestamped files by default, preventing the overwrite of existing files. The default location of the logs has been changed from /var/log/ovirt-engine to /var/log/ovirt-engine/ovirt-log-collector. In addition, a log rotation was introduced to compress old logs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 16:59:54 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:
Bug Depends On:    
Bug Blocks: 1009116    

Description Sandro Bonazzola 2013-08-19 14:25:27 UTC
Description of problem:
Each time you attempt to collect logs, the existing log-collector log file gets overwritten which makes debugging issues harder when you execute multiple attempts.


How reproducible:
100%

Steps to Reproduce:
1. execute several times log collector

Actual results:
default log file is overwritten

Expected results:
default log file should have timestamp avoiding to be overwritten

Additional info:
Affects all versions.

Comment 1 Sandro Bonazzola 2013-08-20 07:34:26 UTC
patch pushed upstream master

Comment 2 Sandro Bonazzola 2013-08-20 08:09:36 UTC
Log messages to timestamped files as default, avoiding to overwrite existing ones.

The default location of the logs was changed, to improve /var/log/ovirt-engine sanity.

/var/log/ovirt-engine -> /var/log/ovirt-engine/ovirt-log-collector

A log rotation was introduced in order to compress old logs.

Comment 3 Sandro Bonazzola 2013-08-20 10:57:55 UTC
merged upstream master, pushed to 3.3 branch.

Comment 4 Sandro Bonazzola 2013-08-21 05:50:58 UTC
merged upstream 3.3 branch

Comment 6 Ilanit Stein 2013-08-25 13:19:36 UTC
Reassign. IS11 contain: rhevm-log-collector-3.3.0-0.1.master.el6ev.noarch

Comment 7 Kiril Nesenko 2013-08-25 13:32:42 UTC
(In reply to Ilanit Stein from comment #6)
> Reassign. IS11 contain: rhevm-log-collector-3.3.0-0.1.master.el6ev.noarch

IS11 includes the correct version. Please recheck your repos

Comment 8 Ilanit Stein 2013-08-25 14:05:50 UTC
Verified on is11.

Existing older tools installed, prevented the new tools installation.

Comment 10 Charlie 2013-11-28 01:16:47 UTC
This bug is currently attached to errata RHBA-2013:15255. 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 11 errata-xmlrpc 2014-01-21 16:59:54 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/RHBA-2014-0039.html