Bug 1936833
| Summary: | Support version 1.1 of the OCF Resource Agent API standard | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Jelinek <tojeline> | |
| Component: | pcs | Assignee: | Ondrej Mular <omular> | |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | high | Docs Contact: | Steven J. Levine <slevine> | |
| Priority: | high | |||
| Version: | 8.5 | CC: | cluster-maint, cluster-qe, gfialova, idevat, kgaillot, kmalyjur, lmiksik, mlisik, mmazoure, mpospisi, nhostako, omular, pgm-rhel-tools, slevine, tojeline | |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
| Target Release: | 8.6 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | pcs-0.10.11-2.el8 | Doc Type: | Enhancement | |
| Doc Text: |
.`pcs` suppport for OCF Resource Agent API 1.1 standard
The `pcs` command-line interface now supports OCF 1.1 resource and STONITH agents. An OCF 1.1 agent's metadata must comply with the OCF 1.1 schema. If an OCF 1.1 agent's metadata does not comply with the OCF 1.1 schema, `pcs` considers the agent invalid and will not create or update a resource of the agent unless the `--force` option is specified. The `pcsd` Web UI and `pcs` commands for listing agents omit OCF 1.1 agents with invalid metadata from the listing.
An OCF agent that declares that it implements any OCF version other than 1.1, or does not declare a version at all, is validated against the OCF 1.0 schema. Validation issues are reported as warnings, but for those agents it is not necessary to specify the `--force` option when creating or updating a resource of the agent.
|
Story Points: | --- | |
| Clone Of: | 1936696 | |||
| : | 2003045 2018969 2060847 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-10 14:50:42 UTC | Type: | Feature Request | |
| 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: | 1384485, 1936696, 2018969 | |||
| Bug Blocks: | 2003045, 2060847 | |||
|
Description
Tomas Jelinek
2021-03-09 10:24:00 UTC
Pacemaker role name changes that could affect pcs: * Using the new role names in "role" in <op>, <rsc_location>, or <resource_set>, or in "rsc-role" or "with-rsc-role" in <rsc_ticket> or <rsc_colocation>, requires CIB schema 3.7 (i.e. "cibadmin --upgrade" or equivalent must be run on an existing cluster to use the new names). * The crm_resource --master option has been deprecated (in help only) and replaced with a new --promoted option. The old name will continue to work for now but should be updated if pcs uses it. * The crm_master command has been deprecated (in help only) and replaced with a new crm_attribute --promotion option that defaults to --lifetime=reboot (example: "crm_master -l reboot -v 10" becomes "crm_attribute --promotion -v 10"). The old command will continue to work for now but should be updated if pcs uses it. * When showing ban constraints, crm_mon --output-as=xml (and --as-xml) will now show promoted-only=true/false in addition to master_only=true/false, which is now deprecated (via schema comment only). master_only will still be available but should be replaced if pcs currently checks it. All of the above will be available in 8.5, and support can be checked by testing the CRM feature set against 3.9.0. Additionally, in 9.0, Pacemaker will use the new names in all tool output, so anywhere pcs is parsing role names from output, it will need to be updated. This will not be a feature set bump since it is a build-time option, but support can be checked by testing whether "pacemakerd --features" contains "compat-2.0" (if it does, tool output uses the old names). (The "compat-2.0" feature can also be used to check the unrelated change of whether tool output uses ocf::provider or ocf:provider.) *** Bug 2003045 has been marked as a duplicate of this bug. *** DevTestResults: [root@r8-node-01 ~]# rpm -q pcs pcs-0.10.11-2.el8.x86_64 [root@r8-node-01 ~]# crm_resource --show-metadata=ocf:pacemaker:Dummy | xmllint --xpath /resource-agent/version - <version>1.1</version> [root@r8-node-01 ~]# pcs resource create dummy ocf:pacemaker:Dummy [root@r8-node-01 ~]# pcs resource * dummy (ocf::pacemaker:Dummy): Started r8-node-01 *** Bug 2049745 has been marked as a duplicate of this bug. *** The same test was done as for bz2018969 comment 8. Marking as VERIFIED for pcs-0.10.12-5.el8. *** Bug 2060847 has been marked as a duplicate of this bug. *** 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/RHEA-2022:1978 |