Blame SOURCES/bz1977588-4-fence_kubevirt-power-timeout-40s.patch
|
|
0ed125 |
From a3d8ce78ed5687954847560f77daafe6474de33f Mon Sep 17 00:00:00 2001
|
|
|
0ed125 |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
0ed125 |
Date: Tue, 2 Nov 2021 09:44:33 +0100
|
|
|
0ed125 |
Subject: [PATCH] fence_kubevirt: set default power-timeout to 40s
|
|
|
0ed125 |
|
|
|
0ed125 |
---
|
|
|
0ed125 |
agents/kubevirt/fence_kubevirt.py | 6 ++++++
|
|
|
0ed125 |
tests/data/metadata/fence_kubevirt.xml | 2 +-
|
|
|
0ed125 |
2 files changed, 7 insertions(+), 1 deletion(-)
|
|
|
0ed125 |
|
|
|
0ed125 |
diff --git a/agents/kubevirt/fence_kubevirt.py b/agents/kubevirt/fence_kubevirt.py
|
|
|
0ed125 |
index 61ffcaa09..8392b75a0 100755
|
|
|
0ed125 |
--- a/agents/kubevirt/fence_kubevirt.py
|
|
|
0ed125 |
+++ b/agents/kubevirt/fence_kubevirt.py
|
|
|
0ed125 |
@@ -2,6 +2,7 @@
|
|
|
0ed125 |
|
|
|
0ed125 |
import sys
|
|
|
0ed125 |
import logging
|
|
|
0ed125 |
+import atexit
|
|
|
0ed125 |
sys.path.append("@FENCEAGENTSLIBDIR@")
|
|
|
0ed125 |
from fencing import *
|
|
|
0ed125 |
from fencing import fail, fail_usage, run_delay, EC_STATUS, EC_FETCH_VM_UUID
|
|
|
0ed125 |
@@ -110,7 +111,12 @@ def main():
|
|
|
0ed125 |
conn = None
|
|
|
0ed125 |
|
|
|
0ed125 |
device_opt = ["port", "namespace", "kubeconfig", "ssl_insecure", "no_password", "apiversion"]
|
|
|
0ed125 |
+
|
|
|
0ed125 |
+ atexit.register(atexit_handler)
|
|
|
0ed125 |
define_new_opts()
|
|
|
0ed125 |
+
|
|
|
0ed125 |
+ all_opt["power_timeout"]["default"] = "40"
|
|
|
0ed125 |
+
|
|
|
0ed125 |
options = check_input(device_opt, process_input(device_opt))
|
|
|
0ed125 |
|
|
|
0ed125 |
docs = {}
|