Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1618592

Summary: [Undercloud] logrotate configuration for openstack-ironic doesn't contain copytruncate option
Product: Red Hat OpenStack Reporter: Keigo Noha <knoha>
Component: openstack-ironicAssignee: Harald Jensås <hjensas>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: medium Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: bfournie, bjacot, hjensas, jschluet, mburns, srevivo
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ironic-10.1.6-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-13 22:14:54 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:

Description Keigo Noha 2018-08-17 03:38:14 UTC
Description of problem:
logrotate configuration for openstack-ironic doesn't contain copytruncate option in undercloud.

~~~
# cat openstack-ironic
/var/log/ironic/*.log {
    rotate 14
    size 10M
    missingok
    compress
}
~~~

It will cause the original file is not properly handled.

nova has copytruncate option in its conf file.
~~~
/var/log/nova/*.log {
    rotate 14
    size 10M
    missingok
    compress
    copytruncate
}
~~~

Version-Release number of selected component (if applicable):
openstack-ironic-10.1.3-5.el7ost

How reproducible:
Everytime

Steps to Reproduce:
1. Install Undercloud and run logrotate.
2.
3.

Actual results:
ironic's log is not written to the new file after logrotation.

Expected results:
copytruncate will solve the situation.

Additional info:

Comment 1 Bob Fournier 2018-08-27 22:16:28 UTC
Here is heat related bug with a proposed fix - https://bugzilla.redhat.com/show_bug.cgi?id=1618589

Comment 7 bjacot 2018-10-30 13:02:47 UTC
verified on core puddle version OSP13 2018-10-24.1 that copytrucate is included.


[stack@undercloud-0 logrotate.d]$ cat openstack-ironic
/var/log/ironic/*.log {
    rotate 14
    size 10M
    missingok
    compress
    copytruncate
}

Comment 9 errata-xmlrpc 2018-11-13 22:14:54 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-2018:3605