Blame SOURCES/bz1751949-1-SAPInstance-add-reload-action.patch

bdc612
From 70a28e8130be863a9073b0a80e0511e971e205c4 Mon Sep 17 00:00:00 2001
bdc612
From: Fabian Herschel <fabian.herschel@suse.com>
bdc612
Date: Fri, 27 Jul 2018 12:33:19 +0200
bdc612
Subject: [PATCH 1/2] SAPInstance: implemeted reload method The reload method
bdc612
 is needed to avoid resource restarts after a non-unique parameter has been
bdc612
 changed. This is in special for interest of the MONITOR_SERVICES parameter.
bdc612
bdc612
---
bdc612
 heartbeat/SAPInstance | 6 ++++++
bdc612
 1 file changed, 6 insertions(+)
bdc612
bdc612
diff --git a/heartbeat/SAPInstance b/heartbeat/SAPInstance
bdc612
index 8de7cee8c..c25839f0c 100755
bdc612
--- a/heartbeat/SAPInstance
bdc612
+++ b/heartbeat/SAPInstance
bdc612
@@ -61,6 +61,7 @@ sapinstance_usage() {
bdc612
 	The 'monitor' operation reports whether the instance seems to be working
bdc612
 	The 'promote' operation starts the primary instance in a Master/Slave configuration
bdc612
 	The 'demote' operation stops the primary instance and starts the ERS instance
bdc612
+    The 'reload' operation allows changed parameters (non-unique only) without restarting the service
bdc612
 	The 'notify' operation always returns SUCCESS
bdc612
 	The 'validate-all' operation reports whether the parameters are valid
bdc612
 	The 'methods' operation reports on the methods $0 supports
bdc612
@@ -224,6 +225,7 @@ The name of the SAP START profile. Specify this parameter, if you have changed t
bdc612
 <action name="monitor" depth="0" timeout="60s" interval="119s" role="Master" />
bdc612
 <action name="promote" timeout="320s" />
bdc612
 <action name="demote" timeout="320s" />
bdc612
+<action name="reload" timeout="320" />
bdc612
 <action name="validate-all" timeout="5s" />
bdc612
 <action name="meta-data" timeout="5s" />
bdc612
 <action name="methods" timeout="5s" />
bdc612
@@ -244,6 +246,7 @@ sapinstance_methods() {
bdc612
 	monitor
bdc612
         promote
bdc612
         demote
bdc612
+    reload
bdc612
         notify
bdc612
 	validate-all
bdc612
 	methods
bdc612
@@ -965,6 +968,9 @@ case "$ACTION" in
bdc612
                                           exit $?;;
bdc612
   validate-all)                           sapinstance_validate
bdc612
                                           exit $?;;
bdc612
+  reload )
bdc612
+                     ocf_log info "reloading SAPInstance parameters"
bdc612
+                     exit $OCF_SUCCESS;;
bdc612
   *)                                      sapinstance_methods
bdc612
                                           exit $OCF_ERR_UNIMPLEMENTED;;
bdc612
 esac
bdc612
bdc612
From ee529b088cc1111656e94dea56b9fcfa6d813313 Mon Sep 17 00:00:00 2001
bdc612
From: Fabian Herschel <fabian.herschel@suse.com>
bdc612
Date: Fri, 27 Jul 2018 13:02:39 +0200
bdc612
Subject: [PATCH 2/2] SAPInstance: Improved indents
bdc612
bdc612
---
bdc612
 heartbeat/SAPInstance | 8 ++++----
bdc612
 1 file changed, 4 insertions(+), 4 deletions(-)
bdc612
bdc612
diff --git a/heartbeat/SAPInstance b/heartbeat/SAPInstance
bdc612
index c25839f0c..174ea36ef 100755
bdc612
--- a/heartbeat/SAPInstance
bdc612
+++ b/heartbeat/SAPInstance
bdc612
@@ -61,7 +61,7 @@ sapinstance_usage() {
bdc612
 	The 'monitor' operation reports whether the instance seems to be working
bdc612
 	The 'promote' operation starts the primary instance in a Master/Slave configuration
bdc612
 	The 'demote' operation stops the primary instance and starts the ERS instance
bdc612
-    The 'reload' operation allows changed parameters (non-unique only) without restarting the service
bdc612
+	The 'reload' operation allows changed parameters (non-unique only) without restarting the service
bdc612
 	The 'notify' operation always returns SUCCESS
bdc612
 	The 'validate-all' operation reports whether the parameters are valid
bdc612
 	The 'methods' operation reports on the methods $0 supports
bdc612
@@ -246,7 +246,7 @@ sapinstance_methods() {
bdc612
 	monitor
bdc612
         promote
bdc612
         demote
bdc612
-    reload
bdc612
+	reload
bdc612
         notify
bdc612
 	validate-all
bdc612
 	methods
bdc612
@@ -969,8 +969,8 @@ case "$ACTION" in
bdc612
   validate-all)                           sapinstance_validate
bdc612
                                           exit $?;;
bdc612
   reload )
bdc612
-                     ocf_log info "reloading SAPInstance parameters"
bdc612
-                     exit $OCF_SUCCESS;;
bdc612
+                                          ocf_log info "reloading SAPInstance parameters"
bdc612
+                                          exit $OCF_SUCCESS;;
bdc612
   *)                                      sapinstance_methods
bdc612
                                           exit $OCF_ERR_UNIMPLEMENTED;;
bdc612
 esac