| Summary: | Skipped first rotation by time after update to logrotate-3.8.6-12.el7.x86_64 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Damir <saydatemp1> |
| Component: | logrotate | Assignee: | Kamil Dudka <kdudka> |
| Status: | CLOSED ERRATA | QA Contact: | Robin Hack <rhack> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | kdudka, rhack, usurse, vdanek, xnie |
| Target Milestone: | rc | Keywords: | EasyFix, Patch, Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | logrotate-3.8.6-14.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: |
NEEDLESS TO DOCUMENT
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 16:19:24 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 1298243, 1393867, 1400961 | ||
|
Description
Damir
2016-11-09 08:04:07 UTC
*** Bug 1393209 has been marked as a duplicate of this bug. *** Confirmed. Thanks for the analysis! The workaround is to copy the saved state file into the new location manually after the update: # cp -a /var/lib/logrotate.status.rpmsave /var/lib/logrotate/logrotate.status Sorry for the troubles! I believe this could fixed by using the %ghost directive for logrotate.status:
--- a/logrotate.spec
+++ b/logrotate.spec
@@ -91,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf
%attr(0755, root, root) %dir %{_sysconfdir}/logrotate.d
%attr(0755, root, root) %dir %{_localstatedir}/lib/logrotate
-%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
+%attr(0644, root, root) %ghost %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
%config(noreplace) %{_sysconfdir}/rwtab.d/logrotate
%changelog
fixed in logrotate-3.10.0-3.fc26: http://pkgs.fedoraproject.org/cgit/rpms/logrotate.git/commit/?id=bd156318 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-2017:1889 |