Bug 1618592
| Summary: | [Undercloud] logrotate configuration for openstack-ironic doesn't contain copytruncate option | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Keigo Noha <knoha> |
| Component: | openstack-ironic | Assignee: | 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: | z3 | Keywords: | 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: | |||
Here is heat related bug with a proposed fix - https://bugzilla.redhat.com/show_bug.cgi?id=1618589 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
}
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 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: