Bug 1271819

Summary: ironic has no logrotate configuration [osp-7]
Product: Red Hat OpenStack Reporter: James Slagle <jslagle>
Component: openstack-ironicAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED ERRATA QA Contact: Raviv Bar-Tal <rbartal>
Severity: high Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: dhill, djuran, ealcaniz, ipetrova, jbuchta, lhh, lmartins, mburns, rbartal, rhel-osp-director-maint, srevivo
Target Milestone: asyncKeywords: AutoVerified, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ironic-2015.1.2-5.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1352006 (view as bug list) Environment:
Last Closed: 2016-07-20 19:53:25 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: 1352006    
Attachments:
Description Flags
Add log rotate configuration OSP7 none

Description James Slagle 2015-10-14 19:43:37 UTC
ironic has no logrotate configuration, meaning that the logs can grow quite large. One should be included by default with the packaging. See the other openstack packages for examples. For instance, the config for heat looks like:

[root@instack ~]# cat /etc/logrotate.d/openstack-heat 
/var/log/heat/*.log {
    rotate 14
    size 10M
    missingok
    compress
    copytruncate
}

Comment 4 Irina Petrova 2016-06-24 07:45:55 UTC
Hey Lucas,

Any news on this? 

This bug has been targeted at OSP v7 and we're already looking at OSP 9/10. Any chance we're going to have logrotation by default in any of the aforementioned?


Best,
Irina

Comment 5 Lucas Alvares Gomes 2016-06-27 15:44:52 UTC
Created attachment 1172917 [details]
Add log rotate configuration OSP7

Comment 6 Lucas Alvares Gomes 2016-06-27 15:48:29 UTC
(In reply to Irina Petrova from comment #4)
> Hey Lucas,
> 
> Any news on this? 
> 

Hi Irina,

I can confirm there's no logrotate configuration for the openstack-ironic package in OSP7 [0], I've created a patch for it and I'm adding Lon to the need additional information form because I don't know how I can submit the change for OSP7.

I've also checked the openstack-ironic spec in RDO [1] and it already includes the logrotate configuration.


[0] http://pkgs.devel.redhat.com/cgit/rpms/openstack-ironic/tree/?h=rhos-7.0-rhel-7
[1] https://www.rdoproject.org/documentation/rdo-packaging/#distgit---where-the-spec-file-lives

Comment 7 Lucas Alvares Gomes 2016-06-27 15:50:27 UTC
As a note, we can apply the same patch (attached) for OSP8, it doesn't conflict.

Comment 8 Jan Buchta 2016-06-29 14:07:22 UTC
Hi. We seem to have 2 customers already facing the problem, I guess we need clear statement on when we can expect to have this done for 7 & 8.

Thank you.
Cheers
Jan

Comment 12 errata-xmlrpc 2016-07-20 19:53:25 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://access.redhat.com/errata/RHBA-2016:1468

Comment 13 Lucas Alvares Gomes 2016-08-18 14:11:59 UTC
*** Bug 1280408 has been marked as a duplicate of this bug. ***