wdmd should load softdog if hardware watchdog is not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sanlock (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu release: Ubuntu 13.04 server edition and older releases
sanlock version: 2.2-2
When there is no hardware watchdog available, I expect softdog kernel module is loaded automatically to make wdmd and sanlock work properly. The actual result is it does not load softdog and wdmd fails to start.
Steps to reproduce the bug:
0. Install Ubuntu 13.04 server edition on a host that does not have a watchdog device
1. aptitude update; aptitude install sanlock
2. vi /etc/default/wdmd
change "enabled" to "1"
3. service wdmd start
service wdmd status
Expected result
wdmd started
Actual result
wdmd is not started
/var/log/syslog shows the following
Sep 24 11:55:22 uvdsm1 wdmd[2446]: wdmd started tests_built client
Sep 24 11:55:22 uvdsm1 wdmd[2446]: no /dev/watchdog, load a watchdog driver
Comments
I think wdmd SysV init script should detect if /dev/watchdog exists, if there is no /dev/watchdog, it may call "modprobe softdog". This modprobe invocation is needed only on Debian and Ubuntu, because on Red Hat family distributions, if there is no hardware watch dog, they load softdog automatically regardless wdmd and sanlock is installed or not.
Changed in sanlock (Ubuntu): | |
status: | New → Confirmed |
This bug was fixed in the package sanlock - 3.8.5-2
---------------
sanlock (3.8.5-2) unstable; urgency=medium
* Add 'watchdog-check' function to 'wdmd' init script. Closes: #1041467 python3, simplifies d/rules.
This also loads the kernel module 'softdog' if no other watchdog module
has been loaded. LP: #1229525
* Remove 'enabled=' option from init.d, and default scripts.
* Start wdmd daemon by default on install.
* By default, make sanlock use services provided by wdmd.
* Dependencies:
- Specify current version of library for sanlock.
- Change dh-python -> dh-sequence-
- Update python3-dev to 'native'.
* Update patch to 'gbp pq' style.
* Update Standards-Version to 4.6.2, no changes needed.
* Update copyright year for myself.
* Run wrap-and-sort -ast
-- Håvard F. Aasen <email address hidden> Fri, 21 Jul 2023 09:04:28 +0200