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 2094855

Summary: Resource agent ocf:pacemaker:HealthSMART is not compliant with OCF 1.1 standard because of a typo in metadata
Product: Red Hat Enterprise Linux 8 Reporter: Nina Hostakova <nhostako>
Component: pacemakerAssignee: Ken Gaillot <kgaillot>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 8.7CC: cluster-maint, jrehova, msmazova
Target Milestone: rcKeywords: Triaged
Target Release: 8.7Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: pacemaker-2.1.4-1.el8 Doc Type: No Doc Update
Doc Text:
This issue was not in a released build.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:42:30 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: 2.1.4
Embargoed:

Description Nina Hostakova 2022-06-08 13:00:25 UTC
Description of problem:
There is a typo in metadata's tag - 'contest' instead of 'content' in 'smartctl' parameter of ocf:pacemaker:HealthSMART agent. As pcs validates agents' metadata against OCF schema, it refuses to create the agent.

Version-Release number of selected component (if applicable):
pacemaker-2.1.3-2.el8

How reproducible:
always

Steps to Reproduce:
# pcs resource create test ocf:pacemaker:HealthSMART
Error: Agent 'ocf:pacemaker:HealthSMART' is not installed or does not provide valid metadata: Element parameter has extra content: contest, line 66, use --force to override
Error: Errors have occurred, therefore pcs is unable to continue

Comment 2 Ken Gaillot 2022-06-27 19:13:09 UTC
Fixed in upstream 2.1.4 release by commit ee6e9dd0

Comment 7 jrehova 2022-07-14 12:07:58 UTC
* 2-node cluster

Status of cluster: 

> [root@virt-537 ~]# pcs status
> Cluster name: STSRHTS21465
> Cluster Summary:
>   * Stack: corosync
>   * Current DC: virt-538 (version 2.1.4-3.el8-dc6eb4362e) - partition with quorum
>   * Last updated: Thu Jul 14 12:12:05 2022
>   * Last change:  Thu Jul 14 12:12:00 2022 by root via cibadmin on virt-537
>   * 2 nodes configured
>   * 2 resource instances configured
> 
> Node List:
>   * Online: [ virt-537 virt-538 ]
> 
> Full List of Resources:
>   * fence-virt-537	(stonith:fence_xvm):	 Started virt-537
>   * fence-virt-538	(stonith:fence_xvm):	 Started virt-538
> 
> Daemon Status:
>   corosync: active/disabled
>   pacemaker: active/disabled
>   pcsd: active/enabled

Version of pacemaker:

> [root@virt-537 ~]# rpm -q pacemaker
> pacemaker-2.1.4-3.el8.x86_64

Create ocf:pacemaker:HealthSMART agent:

> [root@virt-537 ~]# pcs resource create resource_smart ocf:pacemaker:HealthSMART
> [root@virt-537 ~]# pcs status
> Cluster name: STSRHTS21465
> Cluster Summary:
>   * Stack: corosync
>   * Current DC: virt-538 (version 2.1.4-3.el8-dc6eb4362e) - partition with quorum
>   * Last updated: Thu Jul 14 12:17:28 2022
>   * Last change:  Thu Jul 14 12:17:22 2022 by root via cibadmin on virt-537
>   * 2 nodes configured
>   * 3 resource instances configured
> 
> Node List:
>   * Online: [ virt-537 virt-538 ]
> 
> Full List of Resources:
>   * fence-virt-537  (stonith:fence_xvm):   Started virt-537
>   * fence-virt-538  (stonith:fence_xvm):   Started virt-538
>   * resource_smart  (ocf::pacemaker:HealthSMART):  Stopped (not installed)
> 
> Daemon Status:
>   corosync: active/disabled
>   pacemaker: active/disabled
>   pcsd: active/enabled

Information about ocf:pacemaker:HealthSMART agent:

> [root@virt-537 ~]# pcs resource describe ocf:pacemaker:HealthSMART
> ocf:pacemaker:HealthSMART - SMART health status
> 
> System health agent that checks the S.M.A.R.T. status of the given drives and updates the #health-smart attribute.
> 
> Resource options:
>   state (unique group: state): Location to store the resource state in.
>   drives: The drive(s) to check as a SPACE separated list. Enter the full path to the device, e.g. "/dev/sda".
>   devices: The device type(s) to assume for the drive(s) being tested as a SPACE separated list.
>   temp_lower_limit: Lower limit of the temperature in deg C of the drive(s). Below this limit the status will be red.
>   temp_upper_limit: Upper limit of the temperature if deg C of the drives(s). If the drive reports a temperature higher than this value the status of #health-smart will be red.
>   temp_warning: Number of deg C below/above the upper/lower temp limits at which point the status of #health-smart will change to yellow.
>   smartctl: The path to the smartctl program, used for querying device health.
>   dampen: The time to wait (dampening) for further changes to occur
> 
> Default operations:
>   start:
>     interval=0s
>     timeout=10s
>   stop:
>     interval=0s
>     timeout=10s
>   monitor:
>     interval=10s
>     start-delay=0s
>     timeout=10s
>   reload-agent:
>     interval=0s
>     timeout=20s

Result: ocf:pacemaker:HealthSMART resource has been created.

Comment 9 errata-xmlrpc 2022-11-08 09:42:30 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 (pacemaker 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-2022:7573