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

`pcs property describe` does not raise an error for non-existent properties

    • pcs-0.11.6-6.el9
    • None
    • Low
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 19
    • 1
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Release Note Not Required
    • Hide
      Cause:
      Filter function skipped check for properties without metadata in commands `pcs property describe` and `pcs property defaults`.

      Consequence:
      If specified properties in the commands `pcs property describe` and `pcs property defaults` did not have metadata no error was displayed.

      Fix:
      Fix filter function to check properties without metadata.

      Result:
      If specified properties in the commands do not have metadata error message is printed.
      Show
      Cause: Filter function skipped check for properties without metadata in commands `pcs property describe` and `pcs property defaults`. Consequence: If specified properties in the commands `pcs property describe` and `pcs property defaults` did not have metadata no error was displayed. Fix: Fix filter function to check properties without metadata. Result: If specified properties in the commands do not have metadata error message is printed.
    • None

      Description of problem:
      When a cluster property that does not exist is supplied to the `pcs property describe` command, nothing is printed out and the return value is 0 (success). There should be some kind of an error in this case.

      Version-Release number of selected component (if applicable):
      pcs-0.11.6-2.el9

      How reproducible:
      always, easily

      Steps to Reproduce:
      1. Run `pcs property describe nonexistent`

      Actual results:

      1. pcs property describe nonexistent
      1. echo $?
        0

      Expected results:
      An error is printed and pcs exits with a non-zero return code.

      Additional info:

              cluster-qe Cluster QE
              mpospisi@redhat.com Michal Pospisil
              Peter Romancik Peter Romancik
              Nina Hostakova Nina Hostakova
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: