Bug 1618593
| Summary: | [Undercloud] logrotate configuration for openstack-ironic-inspector doesn't contain copytruncate option | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Keigo Noha <knoha> |
| Component: | openstack-ironic-inspector | Assignee: | Harald Jensås <hjensas> |
| Status: | CLOSED ERRATA | QA Contact: | mlammon |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 13.0 (Queens) | CC: | bfournie, bjacot, hjensas, mburns, slinaber |
| Target Milestone: | z3 | Keywords: | Triaged, ZStream |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-ironic-inspector-7.2.1-4.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: | |||
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 |
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: