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