Bug 1618593 - [Undercloud] logrotate configuration for openstack-ironic-inspector doesn't contain copytruncate option
Summary: [Undercloud] logrotate configuration for openstack-ironic-inspector doesn't c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic-inspector
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z3
: 13.0 (Queens)
Assignee: Harald Jensås
QA Contact: mlammon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-17 03:41 UTC by Keigo Noha
Modified: 2022-03-13 16:10 UTC (History)
5 users (show)

Fixed In Version: openstack-ironic-inspector-7.2.1-4.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-13 22:14:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 16301 0 None queens-rdo: MERGED openstack/ironic-inspector-distgit: Use copytruncate when rotating logs (Ia4bb6a73c346810ba7b8697f09f12b23b130acfa) 2018-10-15 14:31:01 UTC
Red Hat Issue Tracker OSP-13717 0 None None None 2022-03-13 16:10:10 UTC
Red Hat Product Errata RHBA-2018:3605 0 None None None 2018-11-13 22:15:31 UTC

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

~~~
# cat openstack-ironic-inspector 
/var/log/ironic-inspector/*.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-inspector-7.2.1-2.el7ost

How reproducible:
Everytime

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

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

Expected results:
copytruncate will solve the situation.

Additional info:

Comment 6 bjacot 2018-10-30 13:05:42 UTC
Verified on OSP 13 core puddle 2018-10-24.1 that copytruncate is included.

[stack@undercloud-0 logrotate.d]$ rpm -qa | grep openstack-ironic-inspector
openstack-ironic-inspector-7.2.1-4.el7ost.noarch

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

Comment 10 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


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