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 2104270 - Agent 'ocf:heartbeat:SAPInstance' implements unsupported OCF version '2.14', supported versions are: '1.0', '1.1'; assumed version '1.0'
Summary: Agent 'ocf:heartbeat:SAPInstance' implements unsupported OCF version '2.14', ...
Keywords:
Status: CLOSED DUPLICATE of bug 1937026
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: resource-agents-sap
Version: 8.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: Amir Memon
URL:
Whiteboard:
Depends On:
Blocks: 2098171
TreeView+ depends on / blocked
 
Reported: 2022-07-05 19:57 UTC by dennispadia
Modified: 2022-09-15 13:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-15 13:46:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-127038 0 None None None 2022-07-05 19:59:21 UTC
Red Hat Knowledge Base (Solution) 6975964 0 None None None 2022-09-15 13:46:00 UTC

Description dennispadia 2022-07-05 19:57:21 UTC
Description of problem:

While creating SAPInstance (rpm: resource-agents-sap) resource on RHEL 8.6 for SAP with HA, Update Services (PAYG) on Azure, I encountered a warning that shows below message.

Warning: Agent 'ocf:heartbeat:SAPInstance' implements unsupported OCF version '2.14', supported versions are: '1.0', '1.1'; assumed version '1.0'

In /var/log/messages, it shows below message. I'm able to create SAP Instance resources, but the warning message description seems alarming to user. 

Jun 28 22:19:20 rhel86app1 pacemaker-controld[633105]: warning: ocf:heartbeat:SAPInstance supports OCF version 2.14 (this Pacemaker version supports 1.1 and might not work properly with agent)

Version-Release number of selected component (if applicable):

RHEL Version: RHEL 8.6 for SAP with HA, Update Service Image on Azure

[root@rhel86app1 ~]# rpm -qa | grep -e pcs -e resource-agents-sap
pcs-0.10.12-6.el8_6.1.x86_64
resource-agents-sap-4.1.1-31.el8.noarch

How reproducible:

Follow the document https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel-nfs-azure-files to setup pacemaker on RHEL. 

Steps to Reproduce:

On creating SAPInstance resource using below command 

sudo pcs resource create rsc_sap_NW1_ASCS00 SAPInstance \
 InstanceName=NW1_ASCS00_ascs86 START_PROFILE="/sapmnt/NW1/profile/NW1_ASCS00_ascs86" \
 AUTOMATIC_RECOVER=false \
 meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
 op monitor interval=20 on-fail=restart timeout=60 \
 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
 --group g-NW1_ASCS

Assumed agent name 'ocf:heartbeat:SAPInstance' (deduced from 'SAPInstance')
Warning: Agent 'ocf:heartbeat:SAPInstance' implements unsupported OCF version '2.14', supported versions are: '1.0', '1.1'; assumed version '1.0'

Similarly same waning when create SAPInstance resource for rsc_SAP_NW1_ERS00

Actual results:


Expected results:

It should not show this warning. 

Additional info:

On debugging the SAPInstance resource in RHEL 8.6, the OCF version is 1.1 and the SAPInstance version is 2.14 in /usr/lib/ocf/resource.d/hearbeat/SAPInstance.  

[root@rhel86app1 heartbeat]# pcs resource debug-monitor --full rsc_sap_NW1_ASCS00 | grep -e OCF_RA_VERSION -e OCF_RESKEY_crm_feature_set
OCF_RA_VERSION_MAJOR=1
OCF_RA_VERSION_MINOR=1
OCF_RESKEY_crm_feature_set=3.13.0

[root@rhel86app1 heartbeat]# more /usr/lib/ocf/resource.d/heartbeat/SAPInstance
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="SAPInstance">
<version>2.14</version>

I could see in SAPInstance github repository https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/SAPInstance, the SAPInstance resource hearbeat OCF version is maintained differently. 

<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="SAPInstance" version="2.14">
<version>1.0</version>

On RHEL 8.4, I don't encounter any issue while creating SAPInstance resource. The OCF version is 1.0 and the SAPInstance version is 2.14 in /usr/lib/ocf/resource.d/hearbeat/SAPInstance (same as RHEL 8.6 SAPInstance resource hearbeat).

[root@app841 heartbeat]# pcs resource debug-monitor --full rsc_sap_QAS_ASCS00 | grep -e OCF_RA_VERSION -e OCF_RESKEY_crm_feature_set
OCF_RA_VERSION_MAJOR=1
OCF_RA_VERSION_MINOR=0
OCF_RESKEY_crm_feature_set=3.7.1

[root@app841 heartbeat]# more /usr/lib/ocf/resource.d/heartbeat/SAPInstance
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="SAPInstance">
<version>2.14</version>

In RHEL 8.4, I have below pcs and resource-agents-sap version. 

[root@app841 heartbeat]# rpm -qa | grep -e pcs -e resource-agents-sap
pcs-0.10.8-1.el8.x86_64
resource-agents-sap-4.1.1-30.el8.noarch

Comment 2 Frank Danapfel 2022-08-09 09:38:42 UTC
@depadia A fix for this issue has now been released for RHEL 8.6 via bug 2098171 and is available in version 4.1.1-31.el8_6.1 of the resource-agents-sap package:
https://access.redhat.com/downloads/content/rhel---8/x86_64/8592/resource-agents-sap/4.1.1-31.el8_6.1/src/fd431d51/package-changelog

We will keep this bugzilla open to ensure tha the fix will also be included in RHEL 8.7 and newer RHEL8 minor releases.

Comment 3 dennispadia 2022-08-15 16:33:22 UTC
With the new package, I'm not encountering the error. Thanks Frank.

Regards,
Dennis Padia.

Comment 4 Shane Bradley 2022-09-15 13:46:00 UTC

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


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