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

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