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 2112002 - Add support for OCF 1.1 cluster properties
Summary: Add support for OCF 1.1 cluster properties
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcs
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.8
Assignee: Miroslav Lisik
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 2112003
TreeView+ depends on / blocked
 
Reported: 2022-07-28 15:17 UTC by Tomas Jelinek
Modified: 2023-05-16 08:39 UTC (History)
10 users (show)

Fixed In Version: pcs-0.10.15-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Feature: Add support for OCF 1.1 format of cluster properties metadata. Reason: Enhance verification of new types. Result: Pcs property command now properly read metadata in new format and validate against it.
Clone Of: 2019464
Environment:
Last Closed: 2023-05-16 08:12:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6148 0 None None None 2022-11-11 20:29:51 UTC
Red Hat Issue Tracker RHELPLAN-129497 0 None None None 2022-07-28 15:42:01 UTC
Red Hat Product Errata RHBA-2023:2738 0 None None None 2023-05-16 08:13:16 UTC

Description Tomas Jelinek 2022-07-28 15:17:01 UTC
+++ This bug was initially created as a clone of Bug #2019464 +++

In bz1281463, pacemaker have migrated cluster properties metadata to OCF 1.1 format. In order for pcs to still be able to validate cluster properties and their values, we need to use the new OCF 1.1 capable parser and update validators in pcs.

Comment 1 Miroslav Lisik 2022-11-16 16:01:16 UTC
Upstream commit: https://github.com/ClusterLabs/pcs/commit/bfc1d290909cd61dddc8d602ca92869c95697616
Updated commands:
  * pcs property set
  * pcs property unset

Property commands has been updated to be able properly read new OCF 1.1 format of properties metadata and validate against it.
Everything should work as before with additional validations.

Test:

[root@r8-node-01 pcs]# /usr/libexec/pacemaker/pacemaker-schedulerd metadata | grep \<version\>
  <version>1.1</version>


[root@r8-node-01 pcs]# pcs property set no-quorum-policy=unknown
Error: 'unknown' is not a valid no-quorum-policy value, use 'demote', 'freeze', 'ignore', 'stop', 'suicide', use --force to override
Error: Errors have occurred, therefore pcs is unable to continue
[root@r8-node-01 pcs]# pcs property set no-quorum-policy=unknown --force
Warning: 'unknown' is not a valid no-quorum-policy value, use 'demote', 'freeze', 'ignore', 'stop', 'suicide'
[root@r8-node-01 pcs]# pcs property config no-quorum-policy
Cluster Properties:
 no-quorum-policy: unknown


[root@r8-node-01 pcs]# pcs property set no-quorum-policy=freeze
[root@r8-node-01 pcs]# pcs property config no-quorum-policy
Cluster Properties:
 no-quorum-policy: freeze

Comment 2 Michal Pospisil 2022-11-24 16:52:48 UTC
DevTestResults:

[root@r08-08-a ~]# rpm -q pcs
pcs-0.10.15-1.el8.x86_64

[root@r08-08-a ~]# /usr/libexec/pacemaker/pacemaker-schedulerd metadata | grep \<version\>
 <version>1.1</version>

[root@r08-08-a ~]# pcs property set no-quorum-policy=unknown
Error: 'unknown' is not a valid no-quorum-policy value, use 'demote', 'freeze', 'ignore', 'stop', 'suicide', use --force to override
Error: Errors have occurred, therefore pcs is unable to continue

[root@r08-08-a ~]# pcs property set no-quorum-policy=unknown --force
Warning: 'unknown' is not a valid no-quorum-policy value, use 'demote', 'freeze', 'ignore', 'stop', 'suicide'

[root@r08-08-a ~]# pcs property config no-quorum-policy
Cluster Properties:
no-quorum-policy: unknown

[root@r08-08-a ~]# pcs property set no-quorum-policy=freeze

[root@r08-08-a ~]# pcs property config no-quorum-policy
Cluster Properties:
no-quorum-policy: freeze

Comment 9 errata-xmlrpc 2023-05-16 08:12:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pcs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2738


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