From ad7d614c1525b3c9db72e081f3ee729f359ab33f Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Fri, 24 Jan 2025 12:00:04 +0100 Subject: [PATCH] - ocf-shellfuncs: fix syntax error in crm_mon_no_validation() Resolves: RHEL-73689 --- ...yntax-error-in-crm_mon_no_validation.patch | 23 +++++++++++++++++++ resource-agents.spec | 9 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 RHEL-73689-ocf-shellfuncs-fix-syntax-error-in-crm_mon_no_validation.patch diff --git a/RHEL-73689-ocf-shellfuncs-fix-syntax-error-in-crm_mon_no_validation.patch b/RHEL-73689-ocf-shellfuncs-fix-syntax-error-in-crm_mon_no_validation.patch new file mode 100644 index 0000000..a936d48 --- /dev/null +++ b/RHEL-73689-ocf-shellfuncs-fix-syntax-error-in-crm_mon_no_validation.patch @@ -0,0 +1,23 @@ +From 17bf880b110c59a69e677b3961b0ebe4e9a483d9 Mon Sep 17 00:00:00 2001 +From: Sergey Safarov +Date: Sun, 12 Jan 2025 20:02:53 +0200 +Subject: [PATCH] ocf-shellfuncs: fixed bash systax error added at + a25f08cf98d784894df9c52960eff5ccef059393 + +--- + heartbeat/ocf-shellfuncs.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/heartbeat/ocf-shellfuncs.in b/heartbeat/ocf-shellfuncs.in +index 8e51fa3c8..6b35b89c7 100644 +--- a/heartbeat/ocf-shellfuncs.in ++++ b/heartbeat/ocf-shellfuncs.in +@@ -742,7 +742,7 @@ crm_mon_no_validation() + # The subshell prevents parsing error with incompatible shells + ocf_version_cmp "$OCF_RESKEY_crm_feature_set" "3.19.7" + if [ $res -eq 2 ] || [ $res -eq 1 ]; then +- "$SHELL" -c "CIB_file=<(${HA_SBIN_DIR}/cibadmin -Q \ ++ "$SHELL" -c "CIB_file=<(${HA_SBIN_DIR}/cibadmin -Q) \ + ${HA_SBIN_DIR}/crm_mon \$*" -- $* + else + "$SHELL" -c "CIB_file=<(${HA_SBIN_DIR}/cibadmin -Q | sed 's/validate-with=\"[^\"]*\"/validate-with=\"none\"/') \ diff --git a/resource-agents.spec b/resource-agents.spec index 2af0bfa..9df749c 100644 --- a/resource-agents.spec +++ b/resource-agents.spec @@ -45,7 +45,7 @@ Name: resource-agents Summary: Open Source HA Reusable Cluster Resource Scripts Version: 4.16.0 -Release: 4%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} +Release: 5%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://github.com/ClusterLabs/resource-agents Source0: %{upstream_prefix}-%{upstream_version}.tar.gz @@ -62,6 +62,7 @@ Patch9: RHEL-76037-1-storage-mon-remove-unused-variables.patch Patch10: RHEL-76037-2-storage-mon-fix-daemon-mode-bug-that-caused-delayed-initial-score.patch Patch11: RHEL-76037-3-storage-mon-only-use-underscores-in-functions.patch Patch12: RHEL-76037-4-storage-mon-check-if-daemon-is-already-running.patch +Patch13: RHEL-73689-ocf-shellfuncs-fix-syntax-error-in-crm_mon_no_validation.patch # bundled ha-cloud-support libs Patch500: ha-cloud-support-aliyun.patch @@ -231,6 +232,7 @@ exit 1 %patch -p1 -P 10 %patch -p1 -P 11 %patch -p1 -P 12 +%patch -p1 -P 13 # bundled ha-cloud-support libs %patch -p1 -P 500 @@ -549,6 +551,11 @@ rm -rf %{buildroot}/usr/share/doc/resource-agents %{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm %changelog +* Fri Jan 24 2025 Oyvind Albrigtsen - 4.16.0-5 +- ocf-shellfuncs: fix syntax error in crm_mon_no_validation() + + Resolves: RHEL-73689 + * Fri Jan 24 2025 Oyvind Albrigtsen - 4.16.0-4 - storage-mon: fix daemon mode bug that caused delayed initial score