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