Bug 2181530 - pcs does not validate resource-discovery in location constraints
Summary: pcs does not validate resource-discovery in location constraints
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pcs
Version: 9.2
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-03-24 12:23 UTC by Tomas Jelinek
Modified: 2023-08-10 15:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
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-153021 0 None None None 2023-03-24 12:25:47 UTC

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.


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