Blame SOURCES/timeout-interval-add-s-suffix.patch

05afe3
From 1c23bbf9700eda44d0d64f34bcb538d7b9e4f6f6 Mon Sep 17 00:00:00 2001
05afe3
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
05afe3
Date: Tue, 4 Sep 2018 09:19:59 +0200
05afe3
Subject: [PATCH] timeout/interval: add "s" suffix where it's missing
05afe3
05afe3
---
05afe3
 .gitignore                    |  1 +
05afe3
 heartbeat/SAPInstance         |  2 +-
05afe3
 heartbeat/aliyun-vpc-move-ip  | 10 +++++-----
05afe3
 heartbeat/gcp-vpc-move-vip.in | 10 +++++-----
05afe3
 heartbeat/mariadb.in          | 22 +++++++++++-----------
05afe3
 heartbeat/sybaseASE.in        | 32 ++++++++++++++++----------------
05afe3
 6 files changed, 39 insertions(+), 38 deletions(-)
05afe3
05afe3
diff --git a/.gitignore b/.gitignore
05afe3
index bbff032c3..3a9be36e5 100644
05afe3
--- a/.gitignore
05afe3
+++ b/.gitignore
05afe3
@@ -44,6 +44,7 @@ heartbeat/ocf-directories
05afe3
 heartbeat/ocf-shellfuncs
05afe3
 heartbeat/send_ua
05afe3
 heartbeat/shellfuncs
05afe3
+heartbeat/*.pyc
05afe3
 include/agent_config.h
05afe3
 include/config.h
05afe3
 include/config.h.in
05afe3
diff --git a/heartbeat/aliyun-vpc-move-ip b/heartbeat/aliyun-vpc-move-ip
05afe3
index e27952adb..ed446c9c1 100755
05afe3
--- a/heartbeat/aliyun-vpc-move-ip
05afe3
+++ b/heartbeat/aliyun-vpc-move-ip
05afe3
@@ -155,11 +155,11 @@ Valid Aliyun CLI profile name
05afe3
 </parameter>
05afe3
 </parameters>
05afe3
 <actions>
05afe3
-<action name="start" timeout="180" />
05afe3
-<action name="stop" timeout="180" />
05afe3
-<action name="monitor" depth="0" timeout="30" interval="30" />
05afe3
-<action name="validate-all" timeout="5" />
05afe3
-<action name="meta-data" timeout="5" />
05afe3
+<action name="start" timeout="180s" />
05afe3
+<action name="stop" timeout="180s" />
05afe3
+<action name="monitor" depth="0" timeout="30s" interval="30s" />
05afe3
+<action name="validate-all" timeout="5s" />
05afe3
+<action name="meta-data" timeout="5s" />
05afe3
 </actions>
05afe3
 </resource-agent>
05afe3
 END
05afe3
diff --git a/heartbeat/gcp-vpc-move-vip.in b/heartbeat/gcp-vpc-move-vip.in
05afe3
index ba61193b6..31d84643a 100755
05afe3
--- a/heartbeat/gcp-vpc-move-vip.in
05afe3
+++ b/heartbeat/gcp-vpc-move-vip.in
05afe3
@@ -77,11 +77,11 @@ METADATA = \
05afe3
     </parameter>
05afe3
   </parameters>
05afe3
   <actions>
05afe3
-    <action name="start" timeout="300" />
05afe3
-    <action name="stop" timeout="15" />
05afe3
-    <action name="monitor" timeout="15" interval="60" depth="0" />
05afe3
-    <action name="meta-data" timeout="15" />
05afe3
-    <action name="validate-all" timeout="15" />
05afe3
+    <action name="start" timeout="300s" />
05afe3
+    <action name="stop" timeout="15s" />
05afe3
+    <action name="monitor" timeout="15s" interval="60s" depth="0" />
05afe3
+    <action name="meta-data" timeout="15s" />
05afe3
+    <action name="validate-all" timeout="15s" />
05afe3
   </actions>
05afe3
 </resource-agent>'''
05afe3
 
05afe3
diff --git a/heartbeat/mariadb.in b/heartbeat/mariadb.in
05afe3
index 860fea7fd..c1969d70e 100644
05afe3
--- a/heartbeat/mariadb.in
05afe3
+++ b/heartbeat/mariadb.in
05afe3
@@ -250,17 +250,17 @@ The port on which the Master MariaDB instance is listening.
05afe3
 </parameters>
05afe3
 
05afe3
 <actions>
05afe3
-<action name="start" timeout="120" />
05afe3
-<action name="stop" timeout="120" />
05afe3
-<action name="status" timeout="60" />
05afe3
-<action name="monitor" depth="0" timeout="30" interval="20" />
05afe3
-<action name="monitor" role="Master" depth="0" timeout="30" interval="10" />
05afe3
-<action name="monitor" role="Slave" depth="0" timeout="30" interval="30" />
05afe3
-<action name="promote" timeout="120" />
05afe3
-<action name="demote" timeout="120" />
05afe3
-<action name="notify" timeout="90" />
05afe3
-<action name="validate-all" timeout="5" />
05afe3
-<action name="meta-data" timeout="5" />
05afe3
+<action name="start" timeout="120s" />
05afe3
+<action name="stop" timeout="120s" />
05afe3
+<action name="status" timeout="60s" />
05afe3
+<action name="monitor" depth="0" timeout="30s" interval="20s" />
05afe3
+<action name="monitor" role="Master" depth="0" timeout="30s" interval="10s" />
05afe3
+<action name="monitor" role="Slave" depth="0" timeout="30s" interval="30s" />
05afe3
+<action name="promote" timeout="120s" />
05afe3
+<action name="demote" timeout="120s" />
05afe3
+<action name="notify" timeout="90s" />
05afe3
+<action name="validate-all" timeout="5s" />
05afe3
+<action name="meta-data" timeout="5s" />
05afe3
 </actions>
05afe3
 </resource-agent>
05afe3
 END
05afe3
diff --git a/heartbeat/sybaseASE.in b/heartbeat/sybaseASE.in
05afe3
index a4a0b7a0c..b4809ea23 100755
05afe3
--- a/heartbeat/sybaseASE.in
05afe3
+++ b/heartbeat/sybaseASE.in
05afe3
@@ -26,19 +26,19 @@
05afe3
 #         /$sybase_home/$sybase_ase/install/RUN_$server_name
05afe3
 #
05afe3
 # (2) You can customize the interval value in the meta-data section if needed:
05afe3
-#                <action name="start" timeout="300" />
05afe3
-#                <action name="stop" timeout="300" />
05afe3
+#                <action name="start" timeout="300s" />
05afe3
+#                <action name="stop" timeout="300s" />
05afe3
 #
05afe3
 #                
05afe3
-#                <action name="status"  interval="30" timeout="100" />
05afe3
-#                <action name="monitor" interval="30" timeout="100" />
05afe3
+#                <action name="status"  interval="30s" timeout="100s" />
05afe3
+#                <action name="monitor" interval="30s" timeout="100s" />
05afe3
 #
05afe3
 #                
05afe3
-#                <action name="status" depth="10" timeout="100" interval="120" />
05afe3
-#                <action name="monitor" depth="10" timeout="100" interval="120" />
05afe3
+#                <action name="status" depth="10" timeout="100s" interval="120s" />
05afe3
+#                <action name="monitor" depth="10" timeout="100s" interval="120s" />
05afe3
 #
05afe3
-#                <action name="meta-data" timeout="5" />
05afe3
-#                <action name="validate-all" timeout="5" />
05afe3
+#                <action name="meta-data" timeout="5s" />
05afe3
+#                <action name="validate-all" timeout="5s" />
05afe3
 #     The timeout value is not supported by Redhat in RHCS5.0.
05afe3
 #
05afe3
 
05afe3
@@ -226,19 +226,19 @@ meta_data()
05afe3
 	</parameters>
05afe3
 
05afe3
 	<actions>
05afe3
-		<action name="start" timeout="300" />
05afe3
-		<action name="stop" timeout="300" />
05afe3
+		<action name="start" timeout="300s" />
05afe3
+		<action name="stop" timeout="300s" />
05afe3
 
05afe3
 		
05afe3
-		<action name="status"  interval="30" timeout="100" />
05afe3
-		<action name="monitor" interval="30" timeout="100" />
05afe3
+		<action name="status"  interval="30s" timeout="100s" />
05afe3
+		<action name="monitor" interval="30s" timeout="100s" />
05afe3
 
05afe3
 		
05afe3
-		<action name="status" depth="10" timeout="100" interval="120" />
05afe3
-		<action name="monitor" depth="10" timeout="100" interval="120" />
05afe3
+		<action name="status" depth="10" timeout="100" interval="120s" />
05afe3
+		<action name="monitor" depth="10" timeout="100" interval="120s" />
05afe3
 
05afe3
-		<action name="meta-data" timeout="5" />
05afe3
-		<action name="validate-all" timeout="5" />
05afe3
+		<action name="meta-data" timeout="5s" />
05afe3
+		<action name="validate-all" timeout="5s" />
05afe3
 	</actions>
05afe3
 </resource-agent>
05afe3
 EOT