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

Improving error message when moving bundles with multiple replicas

    • None
    • None
    • sst_high_availability
    • ssg_filesystems_storage_and_HA
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

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

      When trying to move a bundle resource with more than 1 replica without specifying a destination node, the error message is a bit misleading

      Please provide the package NVR for which bug is seen:

      pacemaker-2.1.6-10.1.el9_3.x86_64

      How reproducible:

      always

      Steps to reproduce

      Having e.g. 2-node cluster with 2 running bundle replicas

      [root@virt-248 ~]# pcs status
      ...
      Node List:
      
      Online: [ virt-248 virt-249 ] 
      GuestOnline: [ DummyBundle-0 DummyBundle-1 ]
      Full List of Resources:
      
      fence-virt-248 (stonith:fence_xvm): Started virt-248 
      fence-virt-249 (stonith:fence_xvm): Started virt-249 
      Container bundle set: DummyBundle [pcmk:dummy]: 
      DummyBundle-0 (ocf:heartbeat:Dummy): Started virt-248 
      DummyBundle-1 (ocf:heartbeat:Dummy): Started virt-249
      ... 

      1. Try to move the bundle resource  without specifying a node

      [root@virt-248 ~]# crm_resource --move --resource DummyBundle
      crm_resource: Resource 'DummyBundle' not moved: active in 2 locations.
      To prevent 'DummyBundle' from running on a specific location, specify a node.

      > This might be confusing as the error message seems to be connected to 'ban' of the resource. However, the original command was 'move' and specifying destination node does not help with moving the resource as moving multiple replica bundles is not allowed
      regardless specifying the node or not

      2. Try to move the bundle with specifying a node

      [root@virt-248 ~]# crm_resource --move --resource DummyBundle --node virt-248
      crm_resource: Error performing operation: Multiple items match request
      

      Addtional info

      This was discovered when testing pcs issue RHEL-7744
      The pcs error message should be changed accordingly.

            kgaillot@redhat.com Kenneth Gaillot
            rhn-support-nhostako Nina Hostakova
            Kenneth Gaillot Kenneth Gaillot
            Cluster QE Cluster QE
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: