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:
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 }
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