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