Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-76177

[RFE] Include device identity in `pcs stonith sbd watchdog list` output [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • pcs-0.11.9-3.el9
    • None
    • FutureFeature
    • rhel-ha
    • 13
    • 23
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .Watchdog device listing provides more detailed information

      Before this update, when listing available watchdog devices, the output only displayed the device path, such as `/dev/watchdog0`. This made it difficult for administrators to distinguish between multiple devices on the same system.

      With this update, the output includes the device path, identity, and driver for each watchdog. This allows for easy identification and selection of the correct device.
      Show
      .Watchdog device listing provides more detailed information Before this update, when listing available watchdog devices, the output only displayed the device path, such as `/dev/watchdog0`. This made it difficult for administrators to distinguish between multiple devices on the same system. With this update, the output includes the device path, identity, and driver for each watchdog. This allows for easy identification and selection of the correct device.
    • Done
    • Done
    • Done
    • Not Required
    • None

      This is a clone of issue RHEL-76176 to use for version rhel-9.7

      Original description:

      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>

       

              rhn-support-nhostako Nina Hostakova
              watson-automation Watson Automation
              Tomas Jelinek Tomas Jelinek
              Nina Hostakova Nina Hostakova
              Michal Stubna Michal Stubna
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: