Bug 1153417 - [RFE] Add automation parameter for logrotate Interval
Summary: [RFE] Add automation parameter for logrotate Interval
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Douglas Schilling Landgraf
QA Contact: wanghui
URL:
Whiteboard:
Depends On:
Blocks: rhevh-7.0
TreeView+ depends on / blocked
 
Reported: 2014-10-16 03:21 UTC by wanghui
Modified: 2016-03-09 14:15 UTC (History)
12 users (show)

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'.
Clone Of:
Environment:
Last Closed: 2016-03-09 14:15:05 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:
sherold: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0378 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update for RHEV 3.6 2016-03-09 19:06:36 UTC
oVirt gerrit 41369 0 master MERGED logrotate: autoinstall options interval Never

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


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