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