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

pcs should validate that fencing level index is an integer between 1 and 9 [rhel-9]

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.0.0
    • pcs
    • pcs-0.11.7-3.el9
    • None
    • Important
    • 88ecf0a5728a39f430bb7f709f4c2b6aa59b583e
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 17
    • 23
    • 2
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .`pcs` no longer validates fencing topology with fencing levels greater than 9

      The Pacemaker cluster resource manager ignores fencing topology levels greater than 9. Configuring levels greater than 9 may lead to failed fencing. With this update, you can configure fencing levels with values of only 1 to 9 in the `pcs` command-line interface and fencing topology works correctly.
      Show
      .`pcs` no longer validates fencing topology with fencing levels greater than 9 The Pacemaker cluster resource manager ignores fencing topology levels greater than 9. Configuring levels greater than 9 may lead to failed fencing. With this update, you can configure fencing levels with values of only 1 to 9 in the `pcs` command-line interface and fencing topology works correctly.
    • Done
    • None

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

      When defining fencing levels, pcs only validates that the fencing level index is a valid integer. However, pacemaker ignores any level that are not between 1 and 9. Therefore, pcs should validate that levels are integers between 1 to 9

      Please provide the package NVR for which bug is seen:

      pcs-0.11.6-3

      How reproducible:

      always, easily

      Steps to reproduce

      1. pcs stonith level add 20 rh92-node1 xvm

      Actual results

      [root@rh92-node1:~]# pcs stonith level add 20 rh92-node1 xvm
      [root@rh92-node1:~]# echo $?
      0

      Expected results

      pcs exits with an error saying the level index needs to be between 1 and 9

              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:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: