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

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