public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fence-agents] eln: - fence_kubevirt: report Succeeded and Failed as OFF
Date: Wed, 01 Jul 2026 00:32:26 GMT [thread overview]
Message-ID: <178286594679.1.6837669713013212597.rpms-fence-agents-d77150d81f27@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fence-agents
Branch : eln
Commit : d77150d81f277ebf463ac6d42013065d93707074
Author : Oyvind Albrigtsen <oalbrigt@redhat.com>
Date : 2026-06-21T19:19:14-04:00
Stats : +37/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fence-agents/c/d77150d81f277ebf463ac6d42013065d93707074?branch=eln
Log:
- fence_kubevirt: report Succeeded and Failed as OFF
Resolves: RHEL-81658
---
diff --git a/RHEL-81658-fence_kubevirt-report-Succeeded-and-Failed-as-OFF.patch b/RHEL-81658-fence_kubevirt-report-Succeeded-and-Failed-as-OFF.patch
new file mode 100644
index 0000000..f29c109
--- /dev/null
+++ b/RHEL-81658-fence_kubevirt-report-Succeeded-and-Failed-as-OFF.patch
@@ -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):
diff --git a/fence-agents.spec b/fence-agents.spec
index 251a6d4..352cc00 100644
--- a/fence-agents.spec
+++ b/fence-agents.spec
@@ -13,7 +13,7 @@
Name: fence-agents
Summary: Set of unified programs capable of host isolation ("fencing")
Version: 4.16.0
-Release: 25%{?alphatag:.%{alphatag}}%{?dist}
+Release: 26%{?alphatag:.%{alphatag}}%{?dist}
License: GPL-2.0-or-later AND LGPL-2.0-or-later
URL: https://github.com/ClusterLabs/fence-agents
Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.gz
@@ -120,6 +120,7 @@ Patch18: RHEL-128925-fence_gce-fix-node-list-limit.patch
Patch19: RHEL-125959-fence_virt-print-errors-to-stderr.patch
Patch20: RHEL-145086-fence_ibm_vpc-fix-missing-statuses.patch
Patch21: RHEL-170614-fence_virtd-fix-discard-const-error-with-GCC-16.patch
+Patch22: RHEL-81658-fence_kubevirt-report-Succeeded-and-Failed-as-OFF.patch
%global supportedagents amt_ws apc apc_snmp bladecenter brocade cisco_mds cisco_ucs drac5 eaton_snmp emerson eps hpblade ibmblade ibm_powervs ibm_vpc ifmib ilo ilo_moonshot ilo_mp ilo_ssh intelmodular ipdu ipmilan kdump kubevirt lpar mpath nutanix_ahv redfish rhevm rsa rsb sbd scsi vmware_rest vmware_soap wti
%ifarch x86_64
@@ -251,6 +252,7 @@ BuildRequires: %{systemd_units}
%patch -p1 -P 19
%patch -p1 -P 20
%patch -p1 -P 21
+%patch -p1 -P 22
# prevent compilation of something that won't get used anyway
sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac
@@ -1224,6 +1226,10 @@ are located on corosync cluster nodes.
%endif
%changelog
+* Thu May 21 2026 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.16.0-26
+- fence_kubevirt: report Succeeded and Failed as OFF
+ Resolves: RHEL-81658
+
* Mon May 4 2026 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.16.0-25
- fence_virtd: fix discard-const error with GCC 16
Resolves: RHEL-170614
reply other threads:[~2026-07-01 0:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178286594679.1.6837669713013212597.rpms-fence-agents-d77150d81f27@fedoraproject.org \
--to=oalbrigt@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox