Compare commits
No commits in common. "c8" and "c8s" have entirely different histories.
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,2 +1,6 @@
|
||||
SOURCES/ClusterLabs-resource-agents-e711383f.tar.gz
|
||||
SOURCES/SAPHanaSR-6281418.tar.gz
|
||||
/*.tar.gz
|
||||
/*.rpm
|
||||
/.*
|
||||
/*/
|
||||
!/tests/
|
||||
/tests/*.retry
|
||||
|
@ -1,2 +0,0 @@
|
||||
0358e1cb7fe86b2105bd2646cbe86f3c0273844a SOURCES/ClusterLabs-resource-agents-e711383f.tar.gz
|
||||
8d25b08bed4b158d83a2884588a345374efdb500 SOURCES/SAPHanaSR-6281418.tar.gz
|
43
RHEL-59660-fix-SAPHanaTopology-regression.patch
Normal file
43
RHEL-59660-fix-SAPHanaTopology-regression.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From 6062afd4f2da3972e3469b2ab8491e3314296efe Mon Sep 17 00:00:00 2001
|
||||
From: AngelaBriel <abriel@suse.com>
|
||||
Date: Thu, 22 Feb 2024 15:38:11 +0100
|
||||
Subject: [PATCH] fix regression in topology (bsc#1219785)
|
||||
|
||||
---
|
||||
ra/SAPHanaTopology | 16 ----------------
|
||||
1 file changed, 16 deletions(-)
|
||||
|
||||
diff --git a/ra/SAPHanaTopology b/ra/SAPHanaTopology
|
||||
index 5c4f6838..8630dd8c 100755
|
||||
--- a/ra/SAPHanaTopology
|
||||
+++ b/ra/SAPHanaTopology
|
||||
@@ -873,7 +873,6 @@ function sht_monitor() {
|
||||
return $rc
|
||||
}
|
||||
|
||||
-
|
||||
#
|
||||
# function: sht_status - get status of a hana instance (os tools only)
|
||||
# params: -
|
||||
@@ -1004,21 +1003,6 @@ function sht_stop_clone() {
|
||||
return $rc
|
||||
}
|
||||
|
||||
-#
|
||||
-# function: sht_monitor
|
||||
-# this function should never be called currently.
|
||||
-# it is intended for future releases which might support un-cloned resources
|
||||
-# for now it is only used to print a reasonable error message in case of
|
||||
-# non-cloned resources instead of 'command not found'
|
||||
-#
|
||||
-function sht_monitor() {
|
||||
- if ! is_clone; then
|
||||
- super_ocf_log error "RA: resource is not defined as clone. This is not supported (OCF_ERR_UNIMPLEMENTED)"
|
||||
- return "$OCF_ERR_UNIMPLEMENTED"
|
||||
- else
|
||||
- return "$OCF_SUCCESS"
|
||||
- fi
|
||||
-}
|
||||
|
||||
#
|
||||
# function: sht_monitor_clone - monitor a hana clone instance
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -23,38 +23,39 @@
|
||||
%global upstream_version e711383f
|
||||
|
||||
%global saphana_prefix SAPHanaSR
|
||||
%global saphana_version 6281418
|
||||
%global saphana_version e8188e0
|
||||
|
||||
Name: resource-agents-sap-hana
|
||||
Summary: SAP HANA cluster resource agents
|
||||
Epoch: 1
|
||||
Version: 0.162.1
|
||||
Release: 2%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://github.com/SUSE/SAPHanaSR
|
||||
Name: resource-agents-sap-hana
|
||||
Summary: SAP HANA cluster resource agents
|
||||
Epoch: 1
|
||||
Version: 0.162.3
|
||||
Release: 5%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://github.com/SUSE/SAPHanaSR
|
||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
||||
Group: System Environment/Base
|
||||
Group: System Environment/Base
|
||||
%else
|
||||
Group: Productivity/Clustering/HA
|
||||
Group: Productivity/Clustering/HA
|
||||
%endif
|
||||
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
||||
Source1: %{saphana_prefix}-%{saphana_version}.tar.gz
|
||||
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
||||
Source1: %{saphana_prefix}-%{saphana_version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
Patch0: RHEL-59660-fix-SAPHanaTopology-regression.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: automake autoconf gcc
|
||||
BuildRequires: perl-interpreter python3-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: libxslt glib2-devel
|
||||
|
||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
||||
BuildRequires: docbook-style-xsl docbook-dtds
|
||||
%endif
|
||||
|
||||
Requires: resource-agents >= 4.1.1
|
||||
Conflicts: %{name}-scaleout
|
||||
Requires: resource-agents >= 4.1.1
|
||||
Conflicts: %{name}-scaleout
|
||||
|
||||
Requires: /bin/bash /usr/bin/grep /bin/sed /bin/gawk
|
||||
Requires: perl
|
||||
Requires: /bin/bash /usr/bin/grep /bin/sed /bin/gawk
|
||||
|
||||
%description
|
||||
The SAP HANA resource agents interface with Pacemaker to allow
|
||||
@ -64,28 +65,43 @@ SAP instances to be managed in a cluster environment.
|
||||
%setup -q -n %{upstream_prefix}-%{upstream_version}
|
||||
%setup -q -T -D -a 1 -n %{upstream_prefix}-%{upstream_version}
|
||||
|
||||
# Add patches before moving files
|
||||
%patch -d %{saphana_prefix}-%{saphana_version} -p1 -P 0
|
||||
|
||||
# add SAPHana agents to Makefile.am
|
||||
mv %{saphana_prefix}-%{saphana_version}/ra/SAPHana* heartbeat
|
||||
sed -i -e '/ SAPInstance \\/a\ SAPHana \\\n SAPHanaTopology \\' heartbeat/Makefile.am
|
||||
sed -i -e '/ ocf_heartbeat_SAPInstance.7 \\/a\ ocf_heartbeat_SAPHana.7 \\\n ocf_heartbeat_SAPHanaTopology.7 \\' doc/man/Makefile.am
|
||||
|
||||
# change provider company
|
||||
# Find the existing SAPInstance entry in the list and add 2 new after in corresponding formatting.
|
||||
# heartbeat/Makefile.am indents by 3 tabs in the target list
|
||||
sed -i -e 's/\(\t\tSAPInstance\t\t\\\)/\1\n\t\t\tSAPHana\t\t\t\\\n\t\t\tSAPHanaTopology\t\\/' heartbeat/Makefile.am
|
||||
|
||||
# Find the existing SAPInstance entry in the list and add 2 new after in corresponding formatting.
|
||||
# doc/man/Makefile.am indents by 26 spaces in the target list
|
||||
sed -i -e 's/\( \{26\}ocf_heartbeat_SAPInstance.7 \\\)/\1\n'\
|
||||
' ocf_heartbeat_SAPHana.7 \\\n'\
|
||||
' ocf_heartbeat_SAPHanaTopology.7 \\/' doc/man/Makefile.am
|
||||
|
||||
# change provider company in hook scripts
|
||||
sed -i -e 's/\("provider_company": \)"SUSE"/\1"Red Hat"/g' %{saphana_prefix}-%{saphana_version}/srHook/SAPHanaSR.py
|
||||
sed -i -e 's/\("provider_company": \)"SUSE"/\1"Red Hat"/g' %{saphana_prefix}-%{saphana_version}/srHook/susChkSrv.py
|
||||
|
||||
#%patch0 -p1
|
||||
# rename patterns to remove "sus" prefix in hook script
|
||||
sed -i -e 's/susChkSrv/ChkSrv/g' %{saphana_prefix}-%{saphana_version}/srHook/susChkSrv.py
|
||||
sed -i -e 's/suschksrv/chksrv/g' %{saphana_prefix}-%{saphana_version}/srHook/susChkSrv.py
|
||||
sed -i -e 's/sustkover_timeout/tkover_timeout/g' %{saphana_prefix}-%{saphana_version}/srHook/susChkSrv.py
|
||||
|
||||
%build
|
||||
if [ ! -f configure ]; then
|
||||
./autogen.sh
|
||||
./autogen.sh
|
||||
fi
|
||||
|
||||
%global rasset linux-ha
|
||||
|
||||
%configure BASH_SHELL="/bin/bash" \
|
||||
PYTHON="%{__python3}" \
|
||||
%{conf_opt_fatal} \
|
||||
--with-pkg-name=%{name} \
|
||||
--with-ras-set=%{rasset}
|
||||
PYTHON="%{__python3}" \
|
||||
%{conf_opt_fatal} \
|
||||
--with-pkg-name=%{name} \
|
||||
--with-ras-set=%{rasset}
|
||||
|
||||
%if %{defined jobs}
|
||||
JFLAGS="$(echo '-j%{jobs}')"
|
||||
@ -105,6 +121,7 @@ find %{buildroot}/%{_mandir} -type f ! -iname "*SAPHana*" -exec rm {} \;
|
||||
mkdir -p %{buildroot}/%{_datadir}/SAPHanaSR/srHook
|
||||
cp -r %{saphana_prefix}-%{saphana_version}/srHook/global.ini %{buildroot}/%{_datadir}/SAPHanaSR/srHook
|
||||
cp -r %{saphana_prefix}-%{saphana_version}/srHook/SAPHanaSR.py %{buildroot}/%{_datadir}/SAPHanaSR/srHook
|
||||
cp -r %{saphana_prefix}-%{saphana_version}/srHook/susChkSrv.py %{buildroot}/%{_datadir}/SAPHanaSR/srHook/ChkSrv.py
|
||||
|
||||
## tree fixup
|
||||
# remove docs (there is only one and they should come from doc sections in files)
|
||||
@ -130,6 +147,19 @@ rm -rf %{buildroot}
|
||||
%exclude /usr/src
|
||||
|
||||
%changelog
|
||||
* Fri Sep 20 2024 Janine Fuchs <jfuchs@redhat.com> - 0.162.3-5
|
||||
- Fix regression in SAPHanaTopology agent.
|
||||
Resolves: RHEL-59664
|
||||
|
||||
- Remove perl dependency from package.
|
||||
Resolves: RHEL-59672
|
||||
|
||||
* Mon Jun 03 2024 Janine Fuchs <jfuchs@redhat.com> - 0.162.3-1
|
||||
- Rebase to SAPHanaSR 0.162.3 upstream release and include the
|
||||
ChkSrv.py hook script to handle hanging HDBindexserver services
|
||||
|
||||
Resolves: RHEL-36435
|
||||
|
||||
* Mon Mar 20 2023 Janine Fuchs <jfuchs@redhat.com> - 0.162.1-2
|
||||
- Rebase to SAPHanaSR 0.162.1 upstream release.
|
||||
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (ClusterLabs-resource-agents-e711383f.tar.gz) = 170ad41571fb0dc717b9f145cbc0cd73b11afa2f73fd4f0dd45f1acbc3d5c109117892e871278cd2d8af4639ceaf9f74ce581009eda864309a297f9018805c4c
|
||||
SHA512 (SAPHanaSR-e8188e0.tar.gz) = 4927181f34cdd65030462bd593c19f500009f01d35ddfbaa725f494420d888adf4a215062e350b7786ad6c862be6a43ff233c6d76e9de032411ae1718efd4be9
|
16
tests/run_tests.sh
Executable file
16
tests/run_tests.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
err=0
|
||||
|
||||
agents=$(pcs resource list ocf:heartbeat 2>&1)
|
||||
if [ $(echo "$agents" | wc -l) -lt 2 ]; then
|
||||
echo "ERROR: pcs: agents available:\n$agents"
|
||||
err=$((err+1))
|
||||
else
|
||||
echo "INFO: pcs: agents available..."
|
||||
fi
|
||||
|
||||
if [ $err -ge 1 ]; then
|
||||
echo -e "\nERROR: $err tests FAILED..."
|
||||
exit 1
|
||||
fi
|
14
tests/tests.yml
Normal file
14
tests/tests.yml
Normal file
@ -0,0 +1,14 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
required_packages:
|
||||
- resource-agents-sap-hana
|
||||
- pcs
|
||||
|
||||
tests:
|
||||
- subpackage_tests:
|
||||
dir: .
|
||||
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user