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
    • 13
    • 26
    • 3
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .Status of a cloned resource running with only one instance now displays properly

      Before this update, when you queried the status of the instances of a cluster resource clone with only one running instance, the `pcs status query` command displayed an error message. With this update, the command reports the resource status properly.
      Show
      .Status of a cloned resource running with only one instance now displays properly Before this update, when you queried the status of the instances of a cluster resource clone with only one running instance, the `pcs status query` command displayed an error message. With this update, the command reports the resource status properly.
    • Done
    • 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 

       

       

              rhn-support-nhostako Nina Hostakova
              watson-automation Watson Automation
              Peter Romancik Peter Romancik
              Nina Hostakova Nina Hostakova
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: