Bug 1649250
Summary: | rsyslog-8.24.0-34.el7.x86_64 imfile broken with logrotate and tomcat rotated logs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jarno Huuskonen <jarno.huuskonen> |
Component: | rsyslog | Assignee: | Jiří Vymazal <jvymazal> |
Status: | CLOSED ERRATA | QA Contact: | Radovan Sroka <rsroka> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.6 | CC: | adam.winberg, dapospis, doug.wussler, fkrska, jvymazal, kompastver, pasik, rmeggins, rsroka, s.buesing, sjayapra, stturner |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rsyslog-8.24.0-35.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 12:48:13 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1648377, 1649308, 1656860 |
Description
Jarno Huuskonen
2018-11-13 09:07:03 UTC
*** Bug 1649491 has been marked as a duplicate of this bug. *** I built rsyslog-8.24.0-34.el7.x86_64 with this quick hack patch (manually copied/edited from https://github.com/rsyslog/rsyslog/commit/e929ee7220de8a81a8669573ac44526397bb3158). I'm testing this with tomcat access_log and it looks like rsyslog continues to monitor the access_log after inode change(rotation). So I think backporting the rsyslog pull/3051 should fix this problem. diff -urN rsyslog-8.24.0.orig/plugins/imfile/imfile.c rsyslog-8.24.0/plugins/imfile/imfile.c --- rsyslog-8.24.0.orig/plugins/imfile/imfile.c 2018-11-13 11:36:57.862001818 +0200 +++ rsyslog-8.24.0/plugins/imfile/imfile.c 2018-11-13 11:36:26.706026617 +0200 @@ -629,8 +629,11 @@ act_obj_unlink(act); restart = 1; break; + } else if(fileInfo.st_ino != act->ino) { + act_obj_unlink(act); + restart = 1; + break; } - // TODO: add inode check for change notification! /* Note: active nodes may get deleted, so we need to do the * pointer advancement at the end of the for loop! Any news on this? Just looking to have my expectations managed. The Priority and Severity of this issue are both HIGH. We are approaching 7 months since this issue was opened. Is the release of the fix imminent? The fix is targetting RHEL-7.7. What about RHEL8 rsyslog-8.37.0-9.el8 ? AFAIK 1674471 is tracking RHEL8 rsyslog, any update when rsyslog-8.37.0-10.el8 (for RHEL8) is going to be available ? 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/RHSA-2019:2110 |