Bug 2027769 - 'pcs constraint ticket add' does not validate a ticket, which may lead to invalid CIB error
Summary: 'pcs constraint ticket add' does not validate a ticket, which may lead to inv...
Keywords:
Status: CLOSED DUPLICATE of bug 2053177
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@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 2027771
TreeView+ depends on / blocked
 
Reported: 2021-11-30 15:33 UTC by Tomas Jelinek
Modified: 2023-07-25 18:23 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2027771 (view as bug list)
Environment:
Last Closed: 2022-02-10 16:21:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker KCSOPP-1861 0 None None None 2023-07-25 18:23:37 UTC
Red Hat Issue Tracker RHELPLAN-104363 0 None None None 2021-11-30 15:35:19 UTC

Description Tomas Jelinek 2021-11-30 15:33:11 UTC
Description of problem:
While 'pcs booth ticket add' validates a new ticket, 'pcs constraint ticket add' does not. This may lead to situations where a constraint is created for a ticket which cannot be added to booth configuration. Moreover, when creating a ticket constraint, a ticket is used as a part of the constraint id unsanitized. This may lead to an invalid CIB being dumped to the terminal.


Version-Release number of selected component (if applicable):
pcs-0.10.11-1
pcs-0.11.1-4


How reproducible:
always, easily


Steps to Reproduce:
1. pcs constraint ticket add "my super ticket" d1


Actual results:
Error: Unable to update cib
Call cib_apply_diff failed (-203): Update does not conform to the configured schema


Expected results:
An error message informing the user that the ticket name is not valid.


Additional info:
# pcs booth ticket add "my super ticket"
Error: booth ticket name 'my super ticket' is not valid, use alphanumeric chars or dash

Comment 1 Tomas Jelinek 2022-02-10 16:21:34 UTC

*** This bug has been marked as a duplicate of bug 2053177 ***


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