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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • rhel-10.0.beta
    • pcs
    • pcs-0.12.0~b1-1.el10
    • No
    • Moderate
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 26
    • 3
    • 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

      This is a clone of issue RHEL-55441 to use for version rhel-10.0.beta

      Original description:

      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
              watson-automation Watson Automation
              Peter Romancik Peter Romancik
              Cluster QE Cluster QE
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: