Bug 1420298
Summary: | "pcs resource delete" overhaul | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Jelinek <tojeline> |
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> |
Status: | CLOSED MIGRATED | QA Contact: | cluster-qe <cluster-qe> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | cfeist, cluster-maint, cmarthal, idevat, jkortus, omular, tojeline |
Target Milestone: | rc | Keywords: | MigratedToJIRA, Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-10-09 09:44:43 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1420101, 1426608, 1553782, 1849994, 2062390 |
Description
Tomas Jelinek
2017-02-08 11:51:51 UTC
Making "pcs resource remove" an alias to "pcs resource delete" would be nice as well. what about hijacking this bug and create something like transaction-aware logic in pcs? Deleting the resource is only one of the examples when this comes handy. Currently to achieve that we have to dump the cib, do pcs -f cib.xml <something> and push it back. It would be cool to have something like crm had and be able to do things like: # pcs pcs> pcs resource delete ... pcs> pcs resource create ... pcs> pcs constraint .. pcs> commit Ideas? :) re [comment 2]: This is pretty overboard: please realize you are proposing an internal statefull shell, big feature on its own. There's hardly any other way to have it considered than through a dedicated bug or upstream issue. Note that there's more humble suggestion already to compose compound "atomic" change natively on command-line through piping: [bug 1359057]. [If the pipe approach was to cover non-mere-CIB-manipulating actions as well (which "pcs resource delete" is), it would have to embed a pcs-internal stream of actions to be performed before/after pushing the CIB into the CIB itself (status section could serve that purpose temporarily, stripping it for the resulting push of the CIB). Still might be doable.] I was thinking only about CIB related actions. Anything else seems to be just too complex for "atomic" operation. More of a shortcut for pcs cib dump && modify && pcs cib push. I discussed this with Jaroslav personally. His proposal is out of the scope of this bz. We should consider printing a warning when working with CIB file that pcs cannot: * stop resources before deleting them * properly remove remote nodes (when deleting VirtualDomain and ocf:pacemaker:remote resources) from the cluster (In reply to Tomas Jelinek from comment #6) > We should consider printing a warning when working with CIB file that pcs > cannot: > * stop resources before deleting them > * properly remove remote nodes (when deleting VirtualDomain and > ocf:pacemaker:remote resources) from the cluster This is covered by bz1426608. 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. *** Bug 1619824 has been marked as a duplicate of this bug. *** Also wanted: do a resource cleanup when a resource is being removed, to prevent leaving junk behind (In reply to Tomas Jelinek from comment #17) > Also wanted: do a resource cleanup when a resource is being removed, to > prevent leaving junk behind reported upstream: https://github.com/ClusterLabs/pcs/issues/194 (In reply to Tomas Jelinek from comment #17) > Also wanted: do a resource cleanup when a resource is being removed, to > prevent leaving junk behind We actually may want to do resource refresh: bz1508350, bz1873691 comment 6 After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. |