- fence_kubevirt: report Succeeded and Failed as OFF
Resolves: RHEL-146216
This commit is contained in:
parent
875a9058d7
commit
036bf154fa
@ -0,0 +1,30 @@
|
||||
From 083b61cdc849962c665d906c57a98ece3fe9ee0b Mon Sep 17 00:00:00 2001
|
||||
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||||
Date: Tue, 12 May 2026 13:37:49 +0200
|
||||
Subject: [PATCH] fence_kubevirt: report Succeeded and Failed as OFF
|
||||
|
||||
With specific settings like RunStrategy: Manual and
|
||||
failure to start up or manual shutdown from within,
|
||||
the VMI object may exist while the VM is not running,
|
||||
and it needs to be correctly parsed to provide the
|
||||
right VM status.
|
||||
---
|
||||
agents/kubevirt/fence_kubevirt.py | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/agents/kubevirt/fence_kubevirt.py b/agents/kubevirt/fence_kubevirt.py
|
||||
index c0b865bb8..d4e65b8cd 100755
|
||||
--- a/agents/kubevirt/fence_kubevirt.py
|
||||
+++ b/agents/kubevirt/fence_kubevirt.py
|
||||
@@ -65,8 +65,11 @@ def get_power_status(conn, options):
|
||||
fail(EC_STATUS)
|
||||
|
||||
def translate_status(instance_status):
|
||||
+ logging.debug(f"translate_status(): {instance_status}")
|
||||
if instance_status == "Running":
|
||||
return "on"
|
||||
+ elif instance_status in ["Succeeded", "Failed"]:
|
||||
+ return "off"
|
||||
return "unknown"
|
||||
|
||||
def set_power_status(conn, options):
|
||||
@ -47,7 +47,7 @@
|
||||
Name: fence-agents
|
||||
Summary: Set of unified programs capable of host isolation ("fencing")
|
||||
Version: 4.10.0
|
||||
Release: 112%{?alphatag:.%{alphatag}}%{?dist}
|
||||
Release: 113%{?alphatag:.%{alphatag}}%{?dist}
|
||||
License: GPLv2+ and LGPLv2+
|
||||
URL: https://github.com/ClusterLabs/fence-agents
|
||||
Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.gz
|
||||
@ -218,6 +218,7 @@ Patch73: RHEL-114753-fence_ibm_powervs-update-api-type-description.patch
|
||||
Patch74: RHEL-128926-1-fence_gce-make-zone-parameter-optional.patch
|
||||
Patch75: RHEL-128926-2-fence_gce-fix-node-list-limit.patch
|
||||
Patch76: RHEL-145088-fence_ibm_vpc-fix-missing-statuses.patch
|
||||
Patch77: RHEL-146216-fence_kubevirt-report-Succeeded-and-Failed-as-OFF.patch
|
||||
|
||||
### HA support libs/utils ###
|
||||
# all archs
|
||||
@ -418,6 +419,7 @@ BuildRequires: %{systemd_units}
|
||||
%patch -p1 -P 74
|
||||
%patch -p1 -P 75
|
||||
%patch -p1 -P 76
|
||||
%patch -p1 -P 77
|
||||
|
||||
# prevent compilation of something that won't get used anyway
|
||||
sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac
|
||||
@ -1516,6 +1518,10 @@ are located on corosync cluster nodes.
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu May 21 2026 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-113
|
||||
- fence_kubevirt: report Succeeded and Failed as OFF
|
||||
Resolves: RHEL-146216
|
||||
|
||||
* Wed Apr 29 2026 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-112
|
||||
- bundled pyasn1: fix CVE-2026-30922
|
||||
Resolves: RHEL-157203
|
||||
|
||||
Loading…
Reference in New Issue
Block a user