|
|
233933 |
From aabc623f99d22a2a9e1d52f3ca7de1dc5b49946d Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
233933 |
Date: Tue, 13 Jun 2017 07:36:50 -0400
|
|
|
233933 |
Subject: [PATCH 068/124] common-ha: surviving ganesha.nfsd not put in grace on
|
|
|
233933 |
fail-over
|
|
|
233933 |
|
|
|
233933 |
Behavior change is seen in new HA in RHEL 7.4 Beta. Up to now clone
|
|
|
233933 |
RAs have been created with "pcs resource create ... meta notify=true".
|
|
|
233933 |
Their notify method is invoked with pre-start or post-stop when one of
|
|
|
233933 |
the clone RAs is started or stopped.
|
|
|
233933 |
|
|
|
233933 |
In 7.4 Beta the notify method we observe that the notify method is not
|
|
|
233933 |
invoked when one of the clones is stopped (or started).
|
|
|
233933 |
|
|
|
233933 |
Ken Gaillot, one of the pacemaker devs, wrote:
|
|
|
233933 |
With the above command, pcs puts the notify=true meta-attribute
|
|
|
233933 |
on the primitive instead of the clone. Looking at the pcs help,
|
|
|
233933 |
that seems expected (--clone notify=true would put it on the clone,
|
|
|
233933 |
meta notify=true puts it on the primitive). If you drop the "meta"
|
|
|
233933 |
above, I think it will work again.
|
|
|
233933 |
|
|
|
233933 |
And indeed his suggested fix does work on both RHEL 7.4 Beta and RHEL
|
|
|
233933 |
7.3 and presumably Fedora.
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM ONLY
|
|
|
233933 |
|
|
|
233933 |
Change-Id: Idbb539f1366df6d39f77431c357dff4e53a2df6d
|
|
|
233933 |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
233933 |
Reviewed-on: https://review.gluster.org/17534
|
|
|
233933 |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
Reviewed-by: soumya k <skoduri@redhat.com>
|
|
|
233933 |
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
233933 |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167153
|
|
|
233933 |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
extras/ganesha/scripts/ganesha-ha.sh | 2 +-
|
|
|
233933 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
index cedc3fa..537c965 100644
|
|
|
233933 |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
233933 |
@@ -445,7 +445,7 @@ setup_create_resources()
|
|
|
233933 |
# ganesha-active crm_attribute
|
|
|
233933 |
sleep 5
|
|
|
233933 |
|
|
|
233933 |
- pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone meta notify=true
|
|
|
233933 |
+ pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone notify=true
|
|
|
233933 |
if [ $? -ne 0 ]; then
|
|
|
233933 |
logger "warning: pcs resource create nfs-grace ocf:heartbeat:ganesha_grace --clone failed"
|
|
|
233933 |
fi
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|