Bug 2104270

Summary: Agent 'ocf:heartbeat:SAPInstance' implements unsupported OCF version '2.14', supported versions are: '1.0', '1.1'; assumed version '1.0'
Product: Red Hat Enterprise Linux 8 Reporter: dennispadia <depadia>
Component: resource-agents-sapAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED DUPLICATE QA Contact: Amir Memon <amemon>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.6CC: fdanapfe, jfuchs, mmoster, oalbrigt, sbradley
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-15 13:46:00 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:    
Bug Blocks: 2098171    

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 ***