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

Bug 998592

Summary: rhevm-iso-uploader - log file overwritten at each execution
Product: Red Hat Enterprise Virtualization Manager Reporter: Sandro Bonazzola <sbonazzo>
Component: ovirt-engine-iso-uploaderAssignee: 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, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-iso-uploader-3.3.0-0.3.rc.el6ev Doc Type: Bug Fix
Doc Text:
Every time an image was uploaded, the existing log file was overwritten, making it difficult to debug issues. Now, messages are logged to timestamped files, to avoid overwriting existing ones. A log rotation was also introduced to compress old logs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 16:31:27 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: 1009115    

Description Sandro Bonazzola 2013-08-19 14:43:00 UTC
Description of problem:
Each time you attempt to upload iso, the existing iso-uploader log file gets overwritten which makes debugging issues harder when you execute multiple attempts.


How reproducible:
100%

Steps to Reproduce:
1. execute several times iso uploader

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:58:56 UTC
patch pushed upstream master

Comment 2 Sandro Bonazzola 2013-08-20 08:08:38 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-iso-uploader

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

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

Comment 4 Sandro Bonazzola 2013-08-20 13:37:46 UTC
merged upstream 3.3 branch.

Comment 6 Ilanit Stein 2013-08-25 13:21:01 UTC
Reassign. IS11 contain: rhevm-iso-uploader-3.3.0-0.1.master.el6ev.noarch

Comment 7 Kiril Nesenko 2013-08-25 13:34:33 UTC
(In reply to Ilanit Stein from comment #6)
> Reassign. IS11 contain: rhevm-iso-uploader-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:08:57 UTC
Verified on is11.

Existing older tools installed prevented the new tools installation.

Comment 10 errata-xmlrpc 2014-01-21 16:31:27 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-0077.html