Bug 1955792 - RFE: crm_resource option to pass OCF_CHECK_LEVEL to OCF resource agents
Summary: RFE: crm_resource option to pass OCF_CHECK_LEVEL to OCF resource agents
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pacemaker
Version: 8.0
Hardware: All
OS: All
Target Milestone: beta
: 8.5
Assignee: Chris Lumens
QA Contact: cluster-qe@redhat.com
Depends On:
Blocks: 1816852
TreeView+ depends on / blocked
Reported: 2021-04-30 19:15 UTC by Ken Gaillot
Modified: 2021-05-03 10:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Enhancement
Target Upstream Version:

Attachments (Terms of Use)

Description Ken Gaillot 2021-04-30 19:15:51 UTC
Description of problem: Pacemaker's crm_resource command-line tool has the --force-check option to directly run an OCF resource agent's monitor action, and --validate to directly run an agent's validate-all action. The recently adopted OCF Resource Agent API 1.1 standard allows those agent actions to behave differently depending on the value of the OCF_CHECK_LEVEL environment variable. A user could explicitly set that variable before calling crm_resource, but it would be more convenient to have a tool option for it.

Comment 1 Ken Gaillot 2021-04-30 19:21:52 UTC
I'm thinking this could either be a new option (e.g. --check-level <N>), or the --validate and --force-check options could be modified to take the check level as an optional argument (e.g. --validate to leave OCF_CHECK_LEVEL unset and --validate 10 to set OCF_CHECK_LEVEL to 10).

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