Bug 726062

Summary: wdmd dies quietly if /etc/wdmd does not exist
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: sanlockAssignee: David Teigland <teigland>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: ajia
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sanlock-1.8-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-19 15:29:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milos Malik 2011-07-27 12:53:26 UTC
Description of problem:
/etc/wdmd directory is not a part of sanlock package.

Version-Release number of selected component (if applicable):
sanlock-lib-1.6-1.el6
sanlock-1.6-1.el6

How reproducible:
always

Steps to Reproduce:
# ls -d /etc/wdmd
ls: cannot access /etc/wdmd: No such file or directory
# wdmd -D
1311770991 wdmd started tests_built scripts client

# echo $?
255
#
  
Actual results:
wdmd dies quietly without an error message

Expected results:
wdmd runs as expected

Comment 1 Milos Malik 2011-07-27 12:55:23 UTC
# mkdir /etc/wdmd
# ls -d /etc/wdmd
/etc/wdmd
# wdmd -D
1311771237 wdmd started tests_built scripts client

1311771237 /dev/watchdog armed with fire_timeout 60
1311771237 keepalive 0
1311771247 test_time 1311771247
1311771247 keepalive 0
1311771247 sleep_seconds 10

<still running>

Comment 2 David Teigland 2011-07-27 14:32:08 UTC
Hi, thanks for testing that.  I was meaning to disable the test script code in the build until we were ready to use it for something.  Do you have a use for test scripts in wdmd?  If not I'll compile it out in the next build.

Comment 3 Milos Malik 2011-07-27 14:46:43 UTC
No, I have no use for test scripts.

Comment 4 Milos Malik 2011-08-03 13:27:48 UTC
# rpm -qa sanlock\*
sanlock-lib-1.6-1.el6.i686
sanlock-1.6-1.el6.i686
# wdmd -D
1312377989 wdmd started tests_built scripts client

1312377989 no /dev/watchdog, load a watchdog driver
# echo $?
255
# 

Where can I get such a watchdog driver ?

Comment 5 Milos Malik 2011-08-03 13:42:30 UTC
Can I use "modprobe softdog" for testing purposes ?

Comment 6 David Teigland 2011-08-03 14:41:40 UTC
yes, you can use softdog if you don't have a hardware watchdog

Comment 8 David Teigland 2011-09-19 15:29:32 UTC

*** This bug has been marked as a duplicate of bug 658971 ***