Blame SOURCES/bz1848025-sybaseASE-run-verify-for-start-action-only.patch

bcdf71
From 953f689cb2a37606b6d4b2250ebec23f129f5095 Mon Sep 17 00:00:00 2001
bcdf71
From: Reid wahl <nrwahl@protonmail.com>
bcdf71
Date: Thu, 9 Jul 2020 23:32:22 -0700
bcdf71
Subject: [PATCH] sybaseASE: Run verify_all() for start operation only
bcdf71
bcdf71
The `sybaseASE` resource agent runs the `verify_all()` function at the
bcdf71
beginning of start, stop, and monitor operations.
bcdf71
bcdf71
When `verify_all()` is run for a probe (monitor) operation and
bcdf71
`sybase_home` resides on a cluster-managed filesystem, the probe often
bcdf71
fails with `$OCF_ERR_GENERIC` because the filesystem isn't mounted yet.
bcdf71
This prevents the resource from starting on that node.
bcdf71
bcdf71
For the stop operation, there's simply no reason to run `verify_all()`.
bcdf71
bcdf71
This patch removes `verify_all()` for the stop and monitor operations.
bcdf71
It is now only run for the start operation.
bcdf71
bcdf71
Resolves: RHBZ#1848673
bcdf71
Resolves: RHBZ#1848025
bcdf71
---
bcdf71
 heartbeat/sybaseASE.in | 2 --
bcdf71
 1 file changed, 2 deletions(-)
bcdf71
bcdf71
diff --git a/heartbeat/sybaseASE.in b/heartbeat/sybaseASE.in
bcdf71
index 9ddd429be..7ff30bd31 100755
bcdf71
--- a/heartbeat/sybaseASE.in
bcdf71
+++ b/heartbeat/sybaseASE.in
bcdf71
@@ -864,12 +864,10 @@ case $__OCF_ACTION in
bcdf71
 		exit $?
bcdf71
 		;;
bcdf71
 	stop)
bcdf71
-		verify_all || exit $OCF_ERR_GENERIC
bcdf71
 		ase_stop
bcdf71
 		exit $?
bcdf71
 		;;
bcdf71
 	status | monitor)
bcdf71
-		verify_all || exit $OCF_ERR_GENERIC
bcdf71
 		ase_status $OCF_CHECK_LEVEL
bcdf71
 		exit $?
bcdf71
 		;;