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

'pcs status query resource is-state instances' fails when used on a clone with only one instance [rhel-9]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.5
    • pcs
    • pcs-0.11.8-2.el9
    • No
    • Moderate
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 26
    • 1
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug): The user tries to check the status of a cloned resource running with only one instance, while specifying the 'instances' keyword in the query command.
      Consequence (what the user experience is when the bug occurs): The command ends with an error saying that the 'instances' keyword can be only used with clone or bundle resources.
      Fix (what has changed to fix the bug; do not include overly technical details):
      The check for valid usage of 'instances' keyword was fixed to properly work even when clone is running in only one instance.
      Result (what happens now that the patch is applied): The command properly reports the resource status to the user.
      Show
      Cause (the user action or circumstances that trigger the bug): The user tries to check the status of a cloned resource running with only one instance, while specifying the 'instances' keyword in the query command. Consequence (what the user experience is when the bug occurs): The command ends with an error saying that the 'instances' keyword can be only used with clone or bundle resources. Fix (what has changed to fix the bug; do not include overly technical details): The check for valid usage of 'instances' keyword was fixed to properly work even when clone is running in only one instance. Result (what happens now that the patch is applied): The command properly reports the resource status to the user.
    • Proposed
    • None

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

      Query the state of instances of a clone with only one instance

      Please provide the package NVR for which bug is seen:

      0.11.7+2f4ebe9d

      How reproducible:

      Easily

      Steps to reproduce

      1. Create a clone with one instance:
      $ pcs resource create a ocf:pacemaker:Dummy clone
      $ pcs meta a-clone clone-max=1
      1. Try to query the state of the clone instances, while using the 'instances' keyword.
      $ pcs status query resource a is-state started instances all

      Expected results

      The command returns True or False, depending on whether the resources are in the expected state.

      Actual results

      Error message:

       

      Error: 'instances' quantifier can be used only on clone resources and their instances, or on bundle resources and their replicas 

       

       

              cluster-qe Cluster QE
              rh-ee-promanci Peter Romancik
              Peter Romancik Peter Romancik
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: