|
|
21ab4e |
From 5ac5b5347400bbb8111ce059389af31e7b7b2904 Mon Sep 17 00:00:00 2001
|
|
|
21ab4e |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
21ab4e |
Date: Tue, 13 Jun 2017 09:02:00 -0400
|
|
|
21ab4e |
Subject: [PATCH 513/525] common-ha: surviving ganesha.nfsd not put in grace on
|
|
|
21ab4e |
fail-over
|
|
|
21ab4e |
|
|
|
21ab4e |
Behavior change is seen in new HA in RHEL 7.4 Beta. Up to now clone
|
|
|
21ab4e |
RAs have been created with "pcs resource create ... meta notify=true".
|
|
|
21ab4e |
Their notify method is invoked with pre-start or post-stop when one of
|
|
|
21ab4e |
the clone RAs is started or stopped.
|
|
|
21ab4e |
|
|
|
21ab4e |
In 7.4 Beta we observe that the notify method is not invoked when one
|
|
|
21ab4e |
of the clones is stopped (or started).
|
|
|
21ab4e |
|
|
|
21ab4e |
Ken Gaillot, one of the pacemaker devs, wrote:
|
|
|
21ab4e |
With the above command, pcs puts the notify=true meta-attribute
|
|
|
21ab4e |
on the primitive instead of the clone. Looking at the pcs help,
|
|
|
21ab4e |
that seems expected (--clone notify=true would put it on the clone,
|
|
|
21ab4e |
meta notify=true puts it on the primitive). If you drop the "meta"
|
|
|
21ab4e |
above, I think it will work again.
|
|
|
21ab4e |
|
|
|
21ab4e |
And indeed his suggested fix does work on both RHEL 7.4 Beta and RHEL
|
|
|
21ab4e |
7.3 and presumably Fedora.
|
|
|
21ab4e |
|
|
|
21ab4e |
Upstream BZ: 1461019
|
|
|
21ab4e |
Upstream Change-Id: Idbb539f1366df6d39f77431c357dff4e53a2df6d
|
|
|
21ab4e |
Upstream: https://review.gluster.org/#/c/17534/
|
|
|
21ab4e |
BUG: 1457179
|
|
|
21ab4e |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
21ab4e |
|
|
|
21ab4e |
Change-Id: I81b808e542b38d39ff916f11c693bd22b5e9cbeb
|
|
|
21ab4e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/108924
|
|
|
21ab4e |
Tested-by: Kaleb Keithley <kkeithle@redhat.com>
|
|
|
21ab4e |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
21ab4e |
---
|
|
|
21ab4e |
extras/ganesha/scripts/ganesha-ha.sh | 2 +-
|
|
|
21ab4e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
21ab4e |
|
|
|
21ab4e |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
21ab4e |
index 138af51..130a584 100644
|
|
|
21ab4e |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
21ab4e |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
21ab4e |
@@ -424,7 +424,7 @@ setup_create_resources()
|
|
|
21ab4e |
# ganesha-active crm_attribute
|
|
|
21ab4e |
sleep 5
|
|
|
21ab4e |
|
|
|
21ab4e |
- pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone meta notify=true
|
|
|
21ab4e |
+ pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone notify=true
|
|
|
21ab4e |
if [ $? -ne 0 ]; then
|
|
|
21ab4e |
logger "warning: pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone failed"
|
|
|
21ab4e |
fi
|
|
|
21ab4e |
--
|
|
|
21ab4e |
1.8.3.1
|
|
|
21ab4e |
|