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

pcs does not validate resource-discovery in location constraints [rhel-9]

    • pcs-0.11.7-4.el9
    • None
    • Moderate
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 17
    • 23
    • 8
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug):
      User enters an invalid resource-discovery value when creating a location constraint.

      Consequence (what the user experience is when the bug occurs):
      Pcs exits with "Error: Unable to update cib" and dumps the cib to the terminal.

      Fix (what has changed to fix the bug; do not include overly technical details):
      Validate resource-discovery value.

      Result (what happens now that the patch is applied):
      Pcs reports "Error: invalid resource-discovery value 'bad-value', allowed values are: 'always', 'exclusive', 'never', use --force to override"
      Show
      Cause (the user action or circumstances that trigger the bug): User enters an invalid resource-discovery value when creating a location constraint. Consequence (what the user experience is when the bug occurs): Pcs exits with "Error: Unable to update cib" and dumps the cib to the terminal. Fix (what has changed to fix the bug; do not include overly technical details): Validate resource-discovery value. Result (what happens now that the patch is applied): Pcs reports "Error: invalid resource-discovery value 'bad-value', allowed values are: 'always', 'exclusive', 'never', use --force to override"
    • None

      Description of problem:
      pcs does not validate resource-discovery in location constraints

      Version-Release number of selected component (if applicable):
      pcs-0.11.4-6

      How reproducible:
      always, easily

      Steps to Reproduce:
      pcs constraint location add loc1 d3 rh91-node1 100 resource-discovery=aaaa

      Actual results:
      pcs fails with:
      Error: Unable to update cib
      Call cib_replace failed: Update does not conform to the configured schema
      and dumps cib to terminal

      Expected results:
      Pcs accepts valid values of resource-discovery. Pcs exits with an explanatory error message when resource-discovery is not valid, prints a list of valid values and does not dump cib to a terminal.

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

                Created:
                Updated:
                Resolved: