Logwatch package points to wrong location for zfs utils
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 fails to print info for ZFS due to invalid paths to binaries.
[Test Case]
With ZFS installed, run logwatch and note the missing ZFS information.
$ sudo apt-get install zfsutils-linux
$ sudo logwatch --detail Low --range all --service zz-zfs --output stdout
In the bugged version, this produces no output.
With a successful configuration, you will see something such as:
------
/dev/zfs and /proc/self/mounts are required.
Try running 'udevadm trigger' and 'mount -t proc proc /proc' as root.
------
[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.
[Discussion]
In /usr/share/
my $pathto_zpool = $ENV{'pathto_
my $pathto_zfs = $ENV{'pathto_zfs'} || '/usr/sbin/zfs';
In Ubuntu, the zfs utilities are in /sbin, not /usr/sbin. This causes logwatch to not print info for ZFS even if you're using it.
The fix is just to point to /sbin instead. This is what fixed it for me.
my $pathto_zpool = $ENV{'pathto_
my $pathto_zfs = $ENV{'pathto_zfs'} || '/sbin/zfs';
Related branches
- Christian Ehrhardt (community): Approve
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
-
Diff: 75 lines (+51/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-0)
debian/patches/series (+1/-0)
- Christian Ehrhardt (community): Approve
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
-
Diff: 76 lines (+51/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-0)
debian/patches/series (+1/-0)
- Christian Ehrhardt (community): Needs Fixing
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
-
Diff: 118 lines (+52/-35)4 files modifieddebian/changelog (+9/-0)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-0)
debian/patches/series (+1/-1)
dev/null (+0/-34)
- Christian Ehrhardt (community): Approve
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
-
Diff: 118 lines (+52/-35)4 files modifieddebian/changelog (+9/-0)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-0)
debian/patches/series (+1/-1)
dev/null (+0/-34)
- Utkarsh Gupta (community): Needs Information
- Christian Ehrhardt (community): Needs Fixing
- git-ubuntu developers: Pending requested
-
Diff: 117 lines (+51/-35)4 files modifieddebian/changelog (+8/-0)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-0)
debian/patches/series (+1/-1)
dev/null (+0/-34)
- 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)
tags: | added: bionic |
tags: | removed: server-next |
description: | updated |
Changed in logwatch (Ubuntu Focal): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in logwatch (Ubuntu Groovy): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Focal): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Bionic): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Xenial): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in logwatch (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in logwatch (Ubuntu Xenial): | |
importance: | Undecided → Medium |
description: | updated |
Changed in logwatch (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
Could you let us know what version of Ubuntu you're using?