Bug 2160770
| Summary: | logwatch is not handling systemd "Deactivated" messages properly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jonathan Kamens <h1k6zn2m> |
| Component: | logwatch | Assignee: | Pavel Šimovec <psimovec> |
| Status: | CLOSED ERRATA | QA Contact: | Karel Volný <kvolny> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | CentOS Stream | CC: | bstinson, jwboyer, psimovec |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | logwatch-7.5.5-6.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-11-07 08:23:35 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: | |||
|
Description
Jonathan Kamens
2023-01-13 16:14:57 UTC
(In reply to Jonathan Kamens from comment #0) > 1. /usr/share/logwatch/scripts/services/systemd is coded to ignore all lines > that match /^Deactivated /, but then elsewhere in the script it has logic > attempting to report stuff about those lines, even though they're being > ignored. I think ignoring them is the right call since they're so ubiquitous > and the obsolete code should be removed from the script. do I read this correctly that this is just a matter of code review, no processing behaviour that can be observed? > 2) The format of the logging has changed in RHEL9 and the pattern being used > now to ignore those lines is no longer working. I think the pattern should > probably be changed to /: Deactivated /. I have troubles reproducing this ... there's plenty of Deactivated messages # grep Deactivated /var/log/messages Apr 28 09:45:55 localhost systemd[1]: initrd-parse-etc.service: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: dbus.socket: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: dracut-pre-pivot.service: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: systemd-ask-password-console.path: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: dracut-pre-mount.service: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: dracut-initqueue.service: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: systemd-sysctl.service: Deactivated successfully. Apr 28 09:45:55 localhost systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully. ... but nothing in logwatch output ( logwatch --service systemd --range all | grep Deactivated ), so it seems these are ignored properly as of logwatch-7.5.5-6.el9.noarch ? Someone already fixed this, and even noted this ticket number in the RPM changelog entry: * Fri Apr 14 2023 Pavel Šimovec <psimovec> - 7.5.5-6 - Add patch to fix systemd messages containing "Deactivated" - Resolves: rhbz:2160770 I don't know why they didn't update the ticket. (In reply to Jonathan Kamens from comment #2) > Someone already fixed this, and even noted this ticket number in the RPM > changelog entry: thanks, my bad, I've totally missed this as the updated package shouldn't have been available yet (so I hadn't expected the fix to be included in the RHEL version I've worked with) > I don't know why they didn't update the ticket. the state transition from ASSIGNED to MODIFIED means that the fix had been commited, so yes, it got updated properly by Pavel, the rest is (broken?) automation 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 (logwatch bug fix and enhancement update), 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-2023:6319 |