Missing perl 'Sys' module in system config summary on focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logwatch (Ubuntu) |
Fix Released
|
Medium
|
Bryce Harrington | ||
Xenial |
Fix Released
|
Medium
|
Bryce Harrington | ||
Bionic |
Fix Released
|
Medium
|
Bryce Harrington | ||
Focal |
Fix Released
|
Medium
|
Bryce Harrington | ||
Groovy |
Fix Released
|
Medium
|
Bryce Harrington |
Bug Description
[Impact]
Logwatch's Sys perl module is optional per distro policy and only used to display current cpu and memory levels, strictly for informational reasons. The warnings issued by Logwatch do not indicate an actual problem, but they do clutter the logwatch report, particularly since they're displayed at the top of the report.
[Test Case]
$ export CODENAME="focal"
$ lxc launch ubuntu:${CODENAME} test-logwatch
$ lxc exec test-logwatch -- bash
# apt-get update
# apt-get dist-upgrade -y
# apt-get install -y logwatch
Without the fix, the start of the log will show an error message about Sys::CPU and Sys::MemInfo not being installed. With the fix there will be no error message.
[Regression Potential]
Since logwatch filters logs for errors pertinent to administrators,
standard things to watch out for are undesired changes in this filtering
behavior, such as flagging or failing to flag issues differently than
before, other than the specific messages being filtered with this
change.
[Original Report]
$ sudo logwatch --detail Low --range today --service all --output stdout
------
No Sys::CPU module installed. To install, execute the command:
perl -MCPAN -e 'install Sys::CPU'
No Sys::MemInfo module installed. To install, execute the command:
perl -MCPAN -e 'install Sys::MemInfo'
Machine: x86_64
Release: Linux 5.4.0-40-generic
------
Related branches
- Bryce Harrington (community): Approve
- Christian Ehrhardt (community): Needs Fixing
- Canonical Server: Pending requested
-
Diff: 1086 lines (+868/-2)13 files modifieddebian/changelog (+371/-0)
debian/control (+4/-2)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch (+32/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch (+51/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+28/-0)
debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch (+28/-0)
debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch (+73/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch (+69/-0)
debian/patches/series (+12/-0)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
- Sergio Durigan Junior: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 419 lines (+355/-0)10 files modifieddebian/changelog (+33/-0)
debian/patches/0010-00-debspecific-disable-su-reporting-in-secure.diff.patch (+34/-0)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+28/-0)
debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch (+28/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/series (+9/-0)
debian/patches/ssh-ignore-disconnected.patch (+23/-0)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
- Sergio Durigan Junior: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 419 lines (+354/-0)10 files modifieddebian/changelog (+33/-0)
debian/patches/0010-00-debspecific-disable-su-reporting-in-secure.diff.patch (+34/-0)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+28/-0)
debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch (+28/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/series (+8/-0)
debian/patches/ssh-ignore-disconnected.patch (+23/-0)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
- Sergio Durigan Junior: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 651 lines (+569/-0)13 files modifieddebian/changelog (+43/-0)
debian/patches/0010-00-debspecific-disable-su-reporting-in-secure.diff.patch (+34/-0)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch (+32/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch (+51/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+28/-0)
debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch (+28/-0)
debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch (+73/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch (+69/-0)
debian/patches/series (+11/-0)
- Seth Arnold (community): Approve
- Canonical Server: Pending requested
- Canonical Server Core Reviewers: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 649 lines (+561/-1)13 files modifieddebian/changelog (+39/-0)
debian/control (+1/-1)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch (+32/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch (+51/-0)
debian/patches/0016-audit-Flag-apparmor-confinement-drops.patch (+62/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+36/-0)
debian/patches/0018-audit-Handle-apparmor-errors-on-DENIED-messages.patch (+56/-0)
debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch (+73/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/series (+11/-0)
description: | updated |
description: | updated |
Changed in logwatch (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Focal): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Xenial): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Bionic): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Focal): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Groovy): | |
assignee: | nobody → Bryce Harrington (bryce) |
tags: |
added: verification-done verification-done-bionic verification-done-focal verification-done-xenial removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-xenial |
I've reproduced this in lxc containers on all supported Ubuntu versions