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