Bug 1009116

Summary: rhevm-log-collector - log file overwritten at each execution
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engine-log-collectorAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: sefi litmanovich <slitmano>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, iheim, knesenko, kroberts, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.2.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-log-collector-3.2.2-5.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-25 18:12:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 998576    
Bug Blocks:    

Description rhev-integ 2013-09-17 17:49:53 UTC
+++ This bug is a RHEV-M zstream clone. The original bug is: +++
+++   https://bugzilla.redhat.com/show_bug.cgi?id=998576. +++

======================================================================



----------------------------------------------------------------------
Following comment by sbonazzo on August 19 at 14:25:27, 2013

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.

----------------------------------------------------------------------
Following comment by sbonazzo on August 20 at 07:34:26, 2013

patch pushed upstream master

----------------------------------------------------------------------
Following comment by sbonazzo on August 20 at 08:09:36, 2013

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.

----------------------------------------------------------------------
Following comment by sbonazzo on August 20 at 10:57:55, 2013

merged upstream master, pushed to 3.3 branch.

----------------------------------------------------------------------
Following comment by sbonazzo on August 21 at 05:50:58, 2013

merged upstream 3.3 branch

----------------------------------------------------------------------
Following comment by errata-xmlrpc on August 21 at 08:15:16, 2013

Bug report changed to ON_QA status by Errata System.
A QE request has been submitted for advisory RHBA-2013:15255-01
http://errata.devel.redhat.com/errata/show/15255

----------------------------------------------------------------------
Following comment by istein on August 25 at 13:19:36, 2013

Reassign. IS11 contain: rhevm-log-collector-3.3.0-0.1.master.el6ev.noarch

----------------------------------------------------------------------
Following comment by knesenko on August 25 at 13:32:42, 2013

(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

----------------------------------------------------------------------
Following comment by istein on August 25 at 14:05:50, 2013

Verified on is11.

Existing older tools installed, prevented the new tools installation.

Comment 1 Sandro Bonazzola 2013-09-20 08:54:27 UTC
patch pushed upstream 3.2 branch

Comment 2 Sandro Bonazzola 2013-09-24 13:40:22 UTC
patch 19405 merged upstream 3.2 branch

Comment 4 sefi litmanovich 2013-10-03 09:10:42 UTC
verified on RHEVM 3.3 IS17.
rhevm-log-collector-3.3.0-1.el6ev.noarch
sos-2.2-44.el6.noarch

Comment 5 Sandro Bonazzola 2013-10-03 09:25:14 UTC
(In reply to sefi litmanovich from comment #4)
> verified on RHEVM 3.3 IS17.
> rhevm-log-collector-3.3.0-1.el6ev.noarch
> sos-2.2-44.el6.noarch

should be verified with rhevm-log-collector-3.2.2-5.el6ev
moving back to ON_QA

Comment 8 errata-xmlrpc 2013-10-25 18:12:36 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-2013-1465.html