Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2027771

Summary: 'pcs constraint ticket add' does not validate a ticket, which may lead to invalid CIB error
Product: Red Hat Enterprise Linux 8 Reporter: Tomas Jelinek <tojeline>
Component: pcsAssignee: Tomas Jelinek <tojeline>
Status: CLOSED DUPLICATE QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: cfeist, cluster-maint, cluster-qe, idevat, kmalyjur, mlisik, mpospisi, omular, tojeline
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2027769 Environment:
Last Closed: 2022-02-10 16:22:33 UTC 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:
Bug Depends On: 2027769, 2053177    
Bug Blocks:    

Description Tomas Jelinek 2021-11-30 15:34:59 UTC
+++ This bug was initially created as a clone of Bug #2027769 +++

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:22:33 UTC

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