Bug 2219555 - [RFE] Add `--safe` option to to `pcs resource clear` command
Summary: [RFE] Add `--safe` option to to `pcs resource clear` command
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pcs
Version: 9.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-04 09:52 UTC by Ondrej Mular
Modified: 2023-08-10 15:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-161485 0 None None None 2023-07-04 09:55:01 UTC

Description Ondrej Mular 2023-07-04 09:52:29 UTC
Add option `--safe` to `pcs resource clear` command. If `--safe` is used, pcs should simulate (using simulation functionality of pacemaker) the change first and make sure that no resource (or no specified resources) will be moved after removing the constraint(s). Otherwise the command should fail without committing any changes to the cluster and print out error message with affected resources.

Consider adding `--simulate` option as well. If used, pcs should only do simulation of the change and print out its results.


Note You need to log in before you can comment on or make changes to this bug.