From c0753536654201ba02fbe5cf46ed4b28f8ba7105 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Mon, 4 May 2026 10:41:27 +0200 Subject: [PATCH] - Filesystem: do not return CONFIGURED during monitor-action Resolves: RHEL-160863 --- ...urn-CONFIGURED-during-monitor-action.patch | 27 +++++++++++++++++++ resource-agents.spec | 9 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 RHEL-160863-Filesystem-do-not-return-CONFIGURED-during-monitor-action.patch diff --git a/RHEL-160863-Filesystem-do-not-return-CONFIGURED-during-monitor-action.patch b/RHEL-160863-Filesystem-do-not-return-CONFIGURED-during-monitor-action.patch new file mode 100644 index 0000000..7379849 --- /dev/null +++ b/RHEL-160863-Filesystem-do-not-return-CONFIGURED-during-monitor-action.patch @@ -0,0 +1,27 @@ +From 46e305ab4cb80fb6e28d2f8a1d90587d1cb1b549 Mon Sep 17 00:00:00 2001 +From: SatomiOSAWA +Date: Wed, 18 Mar 2026 09:32:05 +0900 +Subject: [PATCH] Modify the return code when a mismatch between mount state + and configuration is detected in monitor operation. + +--- + heartbeat/Filesystem | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem +index dda8e66e5..b4f16f17f 100755 +--- a/heartbeat/Filesystem ++++ b/heartbeat/Filesystem +@@ -1029,7 +1029,11 @@ Filesystem_status() + rc=$OCF_NOT_RUNNING + else + ocf_exit_reason "Another device ($mounted_device) is already mounted on $MOUNTPOINT" +- rc=$OCF_ERR_CONFIGURED ++ if [ "$__OCF_ACTION" = "monitor" ]; then ++ rc=$OCF_ERR_GENERIC ++ else ++ rc=$OCF_ERR_CONFIGURED ++ fi + fi + fi + else diff --git a/resource-agents.spec b/resource-agents.spec index b9f6335..4d797ad 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.10.0 -Release: 113%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} +Release: 114%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/ClusterLabs/resource-agents Source0: %{upstream_prefix}-%{upstream_version}.tar.gz @@ -206,6 +206,7 @@ Patch153: RHEL-153158-db2-set-reintegration-when-promotion-is-successful.patch Patch154: RHEL-159203-podman-etcd-hardened-monitor-stop-actions.patch Patch155: RHEL-148198-1-db2-fix-bashism.patch Patch156: RHEL-148198-2-db2-do-not-use-db2stop-to-avoid-divergence-in-the-log.patch +Patch157: RHEL-160863-Filesystem-do-not-return-CONFIGURED-during-monitor-action.patch # bundled ha-cloud-support libs Patch500: ha-cloud-support-aliyun.patch @@ -507,6 +508,7 @@ exit 1 %patch -p1 -P 154 %patch -p1 -P 155 %patch -p1 -P 156 +%patch -p1 -P 157 # bundled ha-cloud-support libs %patch -p1 -P 500 @@ -841,6 +843,11 @@ rm -rf %{buildroot}/usr/share/doc/resource-agents %{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm %changelog +* Mon May 4 2026 Oyvind Albrigtsen - 4.10.0-114 +- Filesystem: do not return CONFIGURED during monitor-action + + Resolves: RHEL-160863 + * Mon Apr 20 2026 Oyvind Albrigtsen - 4.10.0-113 - Cloud agents: change bundled lib paths to match changes in ha-cloud-support