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

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