Bug 950712
Summary: | log file overwritten each upload attempt | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Dave Johnson <dajohnso> | |
Component: | ovirt-image-uploader | Assignee: | Sandro Bonazzola <sbonazzo> | |
Status: | CLOSED ERRATA | QA Contact: | Pavel Stehlik <pstehlik> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.1.0 | CC: | acathrow, iheim, jkt, knesenko, pstehlik, Rhev-m-bugs, sbonazzo | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | 3.3.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | integration | |||
Fixed In Version: | rhevm-image-uploader-3.3.0-0.1.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: | ||||
: | 1016651 (view as bug list) | Environment: | ||
Last Closed: | 2014-01-21 16:32:21 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: | 1016651 |
Description
Dave Johnson
2013-04-10 17:46:27 UTC
Patch pushed on master branch. Note that also log-collector and iso-uploader are affected by the same bug. I'll open one bug for each of them. 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-image-uploader A log rotation was introduced in order to compress old logs. merged upstream master, pushed to 3.3 branch merged upstream 3.3 branch 3.3/is11 I get a new file for each image-uploader command is this correct ? ======================= >ovirt-image-uploader-20130827113507.log 2013-08-27 11:35:18::ERROR::rhevm-image-uploader::1335::root:: not a gzip file >ovirt-image-uploader-20130827120229.log 2013-08-27 12:02:40::ERROR::rhevm-image-uploader::1335::root:: empty header -rw-r--r--. 1 root root 192 Aug 27 11:09 ovirt-image-uploader-20130827110954.log -rw-r--r--. 1 root root 192 Aug 27 11:11 ovirt-image-uploader-20130827111114.log -rw-r--r--. 1 root root 192 Aug 27 11:11 ovirt-image-uploader-20130827111131.log -rw-r--r--. 1 root root 192 Aug 27 11:11 ovirt-image-uploader-20130827111133.log -rw-r--r--. 1 root root 192 Aug 27 11:11 ovirt-image-uploader-20130827111135.log -rw-r--r--. 1 root root 192 Aug 27 11:11 ovirt-image-uploader-20130827111136.log -rw-r--r--. 1 root root 99 Aug 27 11:12 ovirt-image-uploader-20130827111242.log -rw-r--r--. 1 root root 0 Aug 27 11:16 ovirt-image-uploader-20130827111602.log -rw-r--r--. 1 root root 209 Aug 27 11:17 ovirt-image-uploader-20130827111750.log -rw-r--r--. 1 root root 0 Aug 27 11:17 ovirt-image-uploader-20130827111757.log -rw-r--r--. 1 root root 110 Aug 27 11:18 ovirt-image-uploader-20130827111845.log -rw-r--r--. 1 root root 79 Aug 27 11:35 ovirt-image-uploader-20130827113507.log -rw-r--r--. 1 root root 76 Aug 27 12:02 ovirt-image-uploader-20130827120229.log -rw-r--r--. 1 root root 109 Aug 27 12:04 ovirt-image-uploader-20130827120434.log -rw-r--r--. 1 root root 76 Aug 27 12:05 ovirt-image-uploader-20130827120456.log -rw-r--r--. 1 root root 76 Aug 27 12:05 ovirt-image-uploader-20130827120528.log (In reply to David Botzer from comment #6) > 3.3/is11 > I get a new file for each image-uploader command is this correct ? Yes a new log file is created for each image-uploader execution. It is correct. Fixed, 3.3/is11 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-0078.html |