-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
pcs-0.11.8-2.el9
-
rhel-sst-high-availability
-
ssg_filesystems_storage_and_HA
-
13
-
19
-
5
-
False
-
-
Yes
-
None
-
Pass
-
None
-
Enhancement
-
-
Proposed
-
None
This is a clone of issue RHEL-61889 to use for version rhel-9.6
–
Original description:
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.
- clones
-
RHEL-61889 "pcs resource delete" overhaul [rhel-10]
- Integration
- links to
-
RHBA-2024:143081 pcs update