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

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