Bug 1153417

Summary: [RFE] Add automation parameter for logrotate Interval
Product: Red Hat Enterprise Virtualization Manager Reporter: wanghui <huiwa>
Component: ovirt-nodeAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: wanghui <huiwa>
Severity: medium Docs Contact:
Priority: low    
Version: 3.5.0CC: cshao, dfediuck, fdeutsch, gklein, iheim, lbopf, leiwang, lsurette, yaniwang, ycui, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature
Target Release: 3.6.0Flags: sherold: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-3.3.0-0.4.20150906git14a6024.el7ev Doc Type: Enhancement
Doc Text:
Red Hat Enterprise Virtualization Hypervisor users can now configure the logrotate interval and maximum size via automated installation options. The parameters can be used together or separately. If used separately, the default value for 'logrotate_max_size' is '1024' and the default value for 'logrotate_interval' is 'daily'.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 14:15:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1094719    

Description wanghui 2014-10-16 03:21:45 UTC
Description of problem:
It missed the automation parameter for logrotate interval.

Version-Release number of selected component (if applicable):
rhev-hypervisor7-7.0-20141006.0.el7ev
ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch.rpm

How reproducible:
100%

Steps to Reproduce:
1. Check the automation parameter.

Actual results:
1. It missed the automation parameter for logrotate interval.

Expected results:
1. It should have the automation parameter for logrotate interval since we have that in our TUI.

Additional info:

Comment 2 wanghui 2015-10-26 10:06:43 UTC
Test version:
rhev-hypervisor7-7.2-20151025.0.el7ev
ovirt-node-3.3.0-0.18.20151022git82dc52c.el7ev.noarch

Test steps:
1. Auto install rhev-hypervisor7-7.2-20151025.0.el7ev with follow parameters.
BOOTIF=em1 storage_init=/dev/sda adminpw=4DHc2Jl0D05xk logrotate_max_size=2048 logrotate_interval=weekly firstboot
2. Check in TUI
3. Check the /etc/logrotate.d/ovirt-node file

Test results:
1. After step1, auto-install can be succeed.
2. # cat /etc/logrotate.d/ovirt-node 
# Keep the previous three rotations, and rotate if it's been at least
# a day *and* the filesize is at least minsize
/var/log/ovirt*.log {
    rotate 3
    compress
    missingok
    minsize 2048
    weekly
    create
}

So this issue is fixed in ovirt-node-3.3.0-0.18.20151022git82dc52c.el7ev.noarch. Change the status to Verified.

Comment 4 errata-xmlrpc 2016-03-09 14:15:05 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.

https://rhn.redhat.com/errata/RHBA-2016-0378.html