Blame SOURCES/bz2152107-fencing-1-add-plug_separator.patch

8639df
From 90ea995038e560222f9345310f31a79b595a5219 Mon Sep 17 00:00:00 2001
8639df
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
8639df
Date: Thu, 24 Nov 2022 10:19:29 +0100
8639df
Subject: [PATCH 1/2] fencing: add plug_separator parameter to be able to
8639df
 specify one that isnt part of the plug name(s)
8639df
8639df
---
8639df
 lib/fencing.py.py | 9 ++++++++-
8639df
 1 file changed, 8 insertions(+), 1 deletion(-)
8639df
8639df
diff --git a/lib/fencing.py.py b/lib/fencing.py.py
8639df
index 940bd01d1..cf1c48e78 100644
8639df
--- a/lib/fencing.py.py
8639df
+++ b/lib/fencing.py.py
8639df
@@ -322,6 +322,13 @@
8639df
 		"help" : "-6, --inet6-only               Forces agent to use IPv6 addresses only",
8639df
 		"required" : "0",
8639df
 		"order" : 1},
8639df
+	"plug_separator" : {
8639df
+		"getopt" : ":",
8639df
+		"longopt" : "plug-separator",
8639df
+		"help" : "--plug-separator=[char]        Separator for plug parameter when specifying more than 1 plug",
8639df
+		"default" : ",",
8639df
+		"required" : "0",
8639df
+		"order" : 100},
8639df
 	"separator" : {
8639df
 		"getopt" : "C:",
8639df
 		"longopt" : "separator",
8639df
@@ -934,7 +941,7 @@ def fence_action(connection, options, set_power_fn, get_power_fn, get_outlet_lis
8639df
 
8639df
 	try:
8639df
 		if "--plug" in options:
8639df
-			options["--plugs"] = options["--plug"].split(",")
8639df
+			options["--plugs"] = options["--plug"].split(options["--plug-separator"])
8639df
 
8639df
 		## Process options that manipulate fencing device
8639df
 		#####
8639df
8639df
From 55e2a56b81ed2188dedfce07cc3155e2175183cd Mon Sep 17 00:00:00 2001
8639df
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
8639df
Date: Mon, 28 Nov 2022 12:40:00 +0100
8639df
Subject: [PATCH 2/2] fence_wti: increase login timeout to avoid random
8639df
 timeouts
8639df
8639df
---
8639df
 agents/wti/fence_wti.py           | 1 +
8639df
 tests/data/metadata/fence_wti.xml | 2 +-
8639df
 2 files changed, 2 insertions(+), 1 deletion(-)
8639df
8639df
diff --git a/agents/wti/fence_wti.py b/agents/wti/fence_wti.py
8639df
index 68640ae65..97cc66de2 100644
8639df
--- a/agents/wti/fence_wti.py
8639df
+++ b/agents/wti/fence_wti.py
8639df
@@ -178,6 +178,7 @@ def main():
8639df
 	atexit.register(atexit_handler)
8639df
 
8639df
 	all_opt["cmd_prompt"]["default"] = ["RSM>", "MPC>", "IPS>", "TPS>", "NBB>", "NPS>", "VMR>"]
8639df
+	all_opt["login_timeout"]["default"] = "10"
8639df
 
8639df
 	options = check_input(device_opt, process_input(device_opt))
8639df
 
8639df
diff --git a/tests/data/metadata/fence_wti.xml b/tests/data/metadata/fence_wti.xml
8639df
index 6bdccd2dc..8e15f4852 100644
8639df
--- a/tests/data/metadata/fence_wti.xml
8639df
+++ b/tests/data/metadata/fence_wti.xml
8639df
@@ -153,7 +153,7 @@
8639df
 	</parameter>
8639df
 	<parameter name="login_timeout" unique="0" required="0">
8639df
 		<getopt mixed="--login-timeout=[seconds]" />
8639df
-		<content type="second" default="5"  />
8639df
+		<content type="second" default="10"  />
8639df
 		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
8639df
 	</parameter>
8639df
 	<parameter name="power_timeout" unique="0" required="0">