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

"pcs resource delete" overhaul [rhel-10]

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • rhel-10.0.beta
    • pcs
    • pcs-0.12.0~b1-1.el10
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 19
    • 13
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      Feature, enhancement (describe the feature or enhancement from the user’s point of view):
      `pcs resource delete | remove` and `pcs stonith delete | remove` now allow the deletion of multiple resources in a single command.
      `pcs resource delete | remove` now does not allow deletion of remote and guest nodes.

      Reason (why has the feature or enhancement been implemented):
      The original implementation of resource removal removed resources one by one, which led to several issues. The original implementation also allowed the deletion of remote and guest nodes, which led to incomplete deletion of such nodes.

      Result (what is the current user experience):
      The user can delete multiple resources faster and more reliably. The commands now do not allow incomplete deletion of remote and guest nodes, instead pointing the user to more appropriate `pcs cluster node remove-remote | remove-guest` commands.
      Show
      Feature, enhancement (describe the feature or enhancement from the user’s point of view): `pcs resource delete | remove` and `pcs stonith delete | remove` now allow the deletion of multiple resources in a single command. `pcs resource delete | remove` now does not allow deletion of remote and guest nodes. Reason (why has the feature or enhancement been implemented): The original implementation of resource removal removed resources one by one, which led to several issues. The original implementation also allowed the deletion of remote and guest nodes, which led to incomplete deletion of such nodes. Result (what is the current user experience): The user can delete multiple resources faster and more reliably. The commands now do not allow incomplete deletion of remote and guest nodes, instead pointing the user to more appropriate `pcs cluster node remove-remote | remove-guest` commands.
    • Proposed
    • None

      1) When deleting a resource group, pcs lists all resources in the group and deletes them one by one. For each resource the CIB is loaded, the resource is deleted, and the CIB is pushed. If anything goes wrong in the process, we may end up with part the resources deleted and the other part still present in the cluster.

      2) It is not possible to delete more than one resource in one go. So if the user wants to delete five resources, they need to run "pcs resource delete" five times. Pcs will five times load the CIB, stop the resource, push the CIB, wait for pacemaker to stop the resource, load the CIB, delete the resource and push the CIB. That will unnecessary take a lot of time.

      We want to make the code modular and reusable, allow multiple resources to be deleted with one command, fix the command line arguments parsing, improve error reporting.

      Once pcs part is done, we need to update pcsd so it does not use -f when deleting resources.

      Also we should deal with deleting remove and guest nodes. Currently the resource delete command removes the node from pacemaker by using crm_node --remove, but does not delete config files and stop and disable pacemaker remote on the deleted node. It would be probably better to either do none of that or all of that.

              cluster-qe Cluster QE
              tojeline@redhat.com Tomas Jelinek
              Peter Romancik Peter Romancik
              Michal Mazourek Michal Mazourek
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: