ipmi watchdog service fails to start

Bug #2047036 reported by Tim Kay
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ipmiutil (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

lsb_release
  Description: Ubuntu 22.04.3 LTS
  Release: 22.04

ipmiutil:
  Installed: 3.1.8-1
  Candidate: 3.1.8-1

The ipmiutil_wdt service fails to start

× ipmiutil_wdt.service - ipmiutil Watchdog Timer Service using cron
     Loaded: loaded (/lib/systemd/system/ipmiutil_wdt.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-12-20 11:17:05 GMT; 18s ago
    Process: 42230 ExecStart=/usr/share/ipmiutil/ipmiutil_wdt start (code=exited, status=127)
   Main PID: 42230 (code=exited, status=127)
        CPU: 12ms

Dec 20 11:17:05 vslgpu2 systemd[1]: Started ipmiutil Watchdog Timer Service using cron.
Dec 20 11:17:05 vslgpu2 ipmiutil_wdt[42230]: Starting ipmiutil_wdt:
Dec 20 11:17:05 vslgpu2 ipmiutil_wdt[42230]: /usr/share/ipmiutil/ipmiutil_wdt: 49: ipmiutil_wdt: not found
Dec 20 11:17:05 vslgpu2 systemd[1]: ipmiutil_wdt.service: Main process exited, code=exited, status=127/n/a
Dec 20 11:17:05 vslgpu2 systemd[1]: ipmiutil_wdt.service: Failed with result 'exit-code'.

This is for 2 reasons - 2nd is masked by the first and gives a different error

Dec 20 11:18:39 vslgpu2 systemd[1]: Started ipmiutil Watchdog Timer Service using cron.
Dec 20 11:18:39 vslgpu2 ipmiutil_wdt[42690]: Starting /usr/bin/ipmiutil wdt:
Dec 20 11:18:39 vslgpu2 ipmiutil_wdt[42698]: Failed to restart crond.service: Unit crond.service not found.

Bugs/issue are:

1] the service script at /usr/share/ipmiutil/ipmiutil_wdt sets a variable $prog that is then overwritten. This is fixed in ipmiutil version 3.1.9 as below:

03/03/2023 ARCress ipmiutil-3.1.9 changes (iver 3.19)
  util/isensor.c - fix -i get_idx_range to show last idx in range
  util/igetevent.c - fix printf extra arg
  util/memif.c - SR56: try UEFI address 6d5a7000 if F0000 error
  configure.ac - Clang 16 fixes, resolve -Wimplicit-function-declaration issues
    (Sam James <email address hidden> 11/16/2022)
  lib/lanplus/lanplus.h - resolve implicit os_assert declaration (Sam James)
  util/ireset.c - SR58: remove is_romley case for ireset -D
  scripts/ipmiutil_wdt - SR43: changed $prog to $progn for Debian <-- THIS !!!

2] The script checks for /bin/systemctl ( if [ -x /bin/systemctl ]; ) and sets the variable restart_cron="systemctl restart crond.service' without checking for other OS versions rather than nesting an additional check for debian/ubuntu and setting restart_cron="systemctl restart cron.service' (without the d)

Fix for 1] above is to upgrade to the latest patch of ipmiutil (or to rename the $prog var)
Fix for 2] avove is to add an additional OS check or just remove the "d" from the systemctl restart

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ipmiutil 3.1.8-1
ProcVersionSignature: Ubuntu 5.15.0-89.99-generic 5.15.126
Uname: Linux 5.15.0-89-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Dec 20 10:52:00 2023
InstallationDate: Installed on 2019-12-10 (1470 days ago)
InstallationMedia: Ubuntu-Server 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ipmiutil
UpgradeStatus: Upgraded to jammy on 2023-02-15 (307 days ago)

Revision history for this message
Tim Kay (mit-yak) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ipmiutil_wdt.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ipmiutil (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.