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

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