Blame SOURCES/bz2136191-fence_ibm_powervs-improve-defaults.patch

8639df
From 3373431dc49d6e429bbf613765385cb33a56e917 Mon Sep 17 00:00:00 2001
8639df
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
8639df
Date: Tue, 25 Oct 2022 10:39:29 +0200
8639df
Subject: [PATCH] fence_ibm_powervs: improve defaults based on testing
8639df
8639df
---
8639df
 agents/ibm_powervs/fence_ibm_powervs.py   | 4 ++--
8639df
 tests/data/metadata/fence_ibm_powervs.xml | 4 ++--
8639df
 2 files changed, 4 insertions(+), 4 deletions(-)
8639df
8639df
diff --git a/agents/ibm_powervs/fence_ibm_powervs.py b/agents/ibm_powervs/fence_ibm_powervs.py
8639df
index b0caed7c5..183893616 100755
8639df
--- a/agents/ibm_powervs/fence_ibm_powervs.py
8639df
+++ b/agents/ibm_powervs/fence_ibm_powervs.py
8639df
@@ -232,10 +232,10 @@ def main():
8639df
 	atexit.register(atexit_handler)
8639df
 	define_new_opts()
8639df
 
8639df
-	all_opt["shell_timeout"]["default"] = "15"
8639df
+	all_opt["shell_timeout"]["default"] = "500"
8639df
 	all_opt["power_timeout"]["default"] = "30"
8639df
 	all_opt["power_wait"]["default"] = "1"
8639df
-	all_opt["stonith_status_sleep"]["default"] = "3"
8639df
+	all_opt["stonith_status_sleep"]["default"] = "2"
8639df
 	all_opt["api-type"]["default"] = "private"
8639df
 	all_opt["proxy"]["default"] = ""
8639df
 
8639df
diff --git a/tests/data/metadata/fence_ibm_powervs.xml b/tests/data/metadata/fence_ibm_powervs.xml
8639df
index 40c494110..326bc2378 100644
8639df
--- a/tests/data/metadata/fence_ibm_powervs.xml
8639df
+++ b/tests/data/metadata/fence_ibm_powervs.xml
8639df
@@ -119,12 +119,12 @@
8639df
 	</parameter>
8639df
 	<parameter name="shell_timeout" unique="0" required="0">
8639df
 		<getopt mixed="--shell-timeout=[seconds]" />
8639df
-		<content type="second" default="15"  />
8639df
+		<content type="second" default="500"  />
8639df
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
8639df
 	</parameter>
8639df
 	<parameter name="stonith_status_sleep" unique="0" required="0">
8639df
 		<getopt mixed="--stonith-status-sleep=[seconds]" />
8639df
-		<content type="second" default="3"  />
8639df
+		<content type="second" default="2"  />
8639df
 		<shortdesc lang="en">Sleep X seconds between status calls during a STONITH action</shortdesc>
8639df
 	</parameter>
8639df
 	<parameter name="retry_on" unique="0" required="0">