Bug 2181530

Summary: pcs does not validate resource-discovery in location constraints
Product: Red Hat Enterprise Linux 9 Reporter: Tomas Jelinek <tojeline>
Component: pcsAssignee: Tomas Jelinek <tojeline>
Status: NEW --- QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.2CC: cluster-maint, idevat, mlisik, mpospisi, omular, tojeline
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Tomas Jelinek 2023-03-24 12:23:39 UTC
Description of problem:
pcs does not validate resource-discovery in location constraints


Version-Release number of selected component (if applicable):
pcs-0.11.4-6


How reproducible:
always, easily


Steps to Reproduce:
pcs constraint location add loc1 d3 rh91-node1 100 resource-discovery=aaaa


Actual results:
pcs fails with:
Error: Unable to update cib
Call cib_replace failed: Update does not conform to the configured schema
and dumps cib to terminal


Expected results:
Pcs accepts valid values of resource-discovery. Pcs exits with an explanatory error message when resource-discovery is not valid, prints a list of valid values and does not dump cib to a terminal.