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

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