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

'pcs stonith sbd enable' should validate values of sbd options [rhel-9]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.3.0
    • pcs
    • pcs-0.11.7-4.el9
    • None
    • Moderate
    • sst_high_availability
    • ssg_filesystems_storage_and_HA
    • 17
    • 23
    • 3
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .`pcs` validation of SBD options

      Previously, when you enabled SBD with the `pcs stonith sbd enable` command and specified values for SBD options that are not valid, it resulted in SBD misconfiguration. The `pcs` command-line interface has been updated to validate the values for SBD options. When the values are not valid, `pcs` reports the error and does not create or update an SBD configuration.
      Show
      .`pcs` validation of SBD options Previously, when you enabled SBD with the `pcs stonith sbd enable` command and specified values for SBD options that are not valid, it resulted in SBD misconfiguration. The `pcs` command-line interface has been updated to validate the values for SBD options. When the values are not valid, `pcs` reports the error and does not create or update an SBD configuration.
    • Done
    • None

      What were you trying to do that didn't work?

      run 'pcs stonith sbd enable'

      Please provide the package NVR for which bug is seen:

      pcs-0.11.6-6.el9.x86_64

      How reproducible:

      always, easily

      Steps to reproduce

      1. pcs stonith sbd enable SBD_DELAY_START=abcd SBD_STARTMODE=abcd SBD_TIMEOUT_ACTION=abcd SBD_WATCHDOG_TIMEOUT=abcd

      Expected results

      error messages saying values of sbd options are not valid

      Actual results

      only two out of four values are validated:

      • Error: 'abcd' is not a valid SBD_WATCHDOG_TIMEOUT value, use a non-negative integer
      • Error: 'abcd' is not a valid SBD_TIMEOUT_ACTION value, use 'crashdump', 'crashdump,flush', 'crashdump,noflush', 'flush', 'flush,crashdump', 'flush,off', 'flush,reboot', 'noflush', 'noflush,crashdump', 'noflush,off', 'noflush,reboot', 'off', 'off,flush', 'off,noflush', 'reboot', 'reboot,flush', 'reboot,noflush', use --force to override
      • Error: Errors have occurred, therefore pcs is unable to continue

            rhn-support-nhostako Nina Hostakova
            tojeline@redhat.com Tomas Jelinek
            Tomas Jelinek Tomas Jelinek
            Nina Hostakova Nina Hostakova
            Steven Levine Steven Levine
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: