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

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