Bug 2136483 - [RFE] Put 'crm_verify' messages in 'pcs status' output, run 'crm_verify' when editing CIB
Summary: [RFE] Put 'crm_verify' messages in 'pcs status' output, run 'crm_verify' when...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pcs
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On: 2136477
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-20 11:58 UTC by Tomas Jelinek
Modified: 2023-08-10 15:40 UTC (History)
8 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-137154 0 None None None 2022-10-20 12:08:27 UTC

Description Tomas Jelinek 2022-10-20 11:58:05 UTC
Description of problem:
CIB may be misconfigured in such a way that it is a valid XML and confirm to the schema. In that case, it is possible to push such CIB to pacemaker with no issues. For example: not configured or misconfigured fencing; promotable clones of non-OCF resources.

Consider also running crm_verify after successfully pushing CIB to pacemaker, to report possible issues early.

Note that issues reported by crm_verify may depend not only on CIB but also on current cluster status.


How reproducible:
Always, easily


Steps to Reproduce:
1. create an invalid configuration, e.g. pcs resource create test1 systemd:chronyd promotable
2. run 'pcs status'
3.


Actual results:
Only several cases are covered by pcs checks, non-OCF promotable clone is not.


Expected results:
Pcs prints all errors and warnings provided by crm_verify


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