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