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