Bug 823302 - ovirt-cron looks for the wrong logs to rotate ovirtlogrot.sh
Summary: ovirt-cron looks for the wrong logs to rotate ovirtlogrot.sh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Kiril Nesenko
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-20 17:55 UTC by Cybertimber2011
Modified: 2014-07-11 00:08 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 08:06:32 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Cybertimber2011 2012-05-20 17:55:33 UTC
Description of problem:
Related to 819769, /usr/share/ovirt-engine/scripts/ovirtlogrot.sh apparently looks for "/var/log/ovirt-engine/rhevm.log.*" and "/var/log/ovirt-engine/rhevm.log.*.gz" instead of /var/log/ovirt-engine/engine.log (and the subsequent .gz version.

Version-Release number of selected component (if applicable):
3.0.0_0001

How reproducible:
Every time.

Steps to Reproduce:
1. In /etc/cron.daily/ovirt-cron, correct the path of /usr/share/ovirt/scripts/ovirtlogrot.sh to /usr/share/ovirt-engine/scripts/ovirtlogrot.sh
2. Run the script, or wait fron crond to do it.
  
Actual results:
Console outputs: 
ls: cannot access /var/log/ovirt-engine/rhevm.log.*: No such file or directory
ls: cannot access /var/log/ovirt-engine/rhevm.log.*.gz: No such file or directory

Expected results:
engine.log log files are rotated

Additional info:
References to rhevm.log need to be changed to engine.log

Comment 1 Cybertimber2011 2012-05-20 18:18:09 UTC
Hmm, simply changing all instances of rhevm.log to engine.log doesn't seem to do it.  I don't see anything in the script which makes the current engine.log into something else (like engine.log.1). It seems to look for engine.log.1 to compress.

Comment 2 Ofer Schreiber 2012-06-05 14:36:27 UTC
It seems like this bug was resolved in 26ce670fb6f53d0ed99d1e976c7ed628c9208665 (Alex Lourie - packaging:  Fixed using "ovirt-engine" instead of 'rhevm')

Comment 3 Itamar Heim 2012-08-09 08:06:32 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/


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