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