-
Story
-
Resolution: Unresolved
-
Major
-
None
-
Moderate
-
FutureFeature
-
Customer Reported
-
rhel-sst-high-availability
-
13
-
23
-
0
-
False
-
-
Yes
-
None
-
Enhancement
-
-
Proposed
-
None
Description of problem
The current output of `pcs stonith sbd watchdog list` provides only the /dev/watchdog* names of the devices. This is not very useful without taking the additional step of running `wdctl /dev/watchdog<num>` to check the identity of the device (especially if a machine has multiple watchdog devices available).
[root@rhel-8-0-3 sosreport-rhel-8-0-3-00000000-2019-02-05-mpoisxd]# pcs stonith sbd watchdog list
Available watchdog(s):
/dev/watchdog
/dev/watchdog0
[root@rhel-8-0-3 sosreport-rhel-8-0-3-00000000-2019-02-05-mpoisxd]# wdctl /dev/watchdog0
Device: /dev/watchdog0
Identity: i6300ESB timer [version 0]
Timeout: 30 seconds
Pre-timeout: 0 seconds
FLAG DESCRIPTION STATUS BOOT-STATUS
KEEPALIVEPING Keep alive ping reply 1 0
MAGICCLOSE Supports magic close char 1 0
SETTIMEOUT Set timeout (in seconds) 0 0
The `sbd query-watchdog` command, in contrast, prints the identity of the watchdog device.
[root@rhel-8-0-3 sosreport-rhel-8-0-3-00000000-2019-02-05-mpoisxd]# sbd query-watchdog Discovered 2 watchdog devices: [1] /dev/watchdog Identity: i6300ESB timer Driver: <unknown> [2] /dev/watchdog0 Identity: i6300ESB timer Driver: <unknown>
It would be nice for the `pcs` subcommand to include the identity of the device(s).
Version-Release number of selected component (if applicable)
pcs-0.10.0.alpha.6-2.el8.x86_64
How reproducible
Always
Steps to Reproduce
Run `pcs stonith sbd watchdog list` on a machine where sbd is installed.
Actual results
Only the /dev/watchdog* names of the devices print.
Expected results
The /dev/watchdog* names and the identities of the devices print.
Additional information
We could consider a similar addition to the `pcs stonith sbd config` output. (Node rhel-8-0-4 is offline below.)
[root@rhel-8-0-3 sosreport-rhel-8-0-3-00000000-2019-02-05-mpoisxd]# pcs stonith sbd config
Warning: Unable to connect to rhel-8-0-4 (Failed to connect to rhel-8-0-4 port 2224: No route to host)
Warning: Unable to get SBD configuration from node 'rhel-8-0-4'
SBD_STARTMODE=always
SBD_DELAY_START=no
SBD_WATCHDOG_TIMEOUT=5
Watchdogs:
rhel-8-0-3: /dev/watchdog
rhel-8-0-4: <unknown>
- is cloned by
-
RHEL-76177 [RFE] Include device identity in `pcs stonith sbd watchdog list` output [rhel-9]
-
- In Progress
-