Skip to content

Commit f5b341d

Browse files
authored
Merge pull request #1378 from rackerlabs/ilo-ipmi-utf-8-call-support
feat(ironic): patch for proliantutils for ipmi response to force utf-8 response.
2 parents 152ce68 + c311077 commit f5b341d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 2f02ca00341d8069292ae9fe2ab3396fe44dac7d Mon Sep 17 00:00:00 2001
2+
From: Alan Bounds <[email protected]>
3+
Date: Thu, 6 Nov 2025 08:47:08 -0600
4+
Subject: [PATCH] Solve IPMI call issue results in UTF-8 format error on
5+
ipmitool execution response decoding.
6+
7+
---
8+
proliantutils/ilo/ipmi.py | 3 ++-
9+
1 file changed, 2 insertions(+), 1 deletion(-)
10+
11+
diff --git a/proliantutils/ilo/ipmi.py b/proliantutils/ilo/ipmi.py
12+
index 403ff4b..67176dc 100644
13+
--- a/proliantutils/ilo/ipmi.py
14+
+++ b/proliantutils/ilo/ipmi.py
15+
@@ -52,7 +52,8 @@ def _exec_ipmitool(driver_info, command):
16+
out = None
17+
try:
18+
process = subprocess.Popen(ipmi_cmd, stdout=subprocess.PIPE,
19+
- stderr=subprocess.PIPE, shell=True)
20+
+ stderr=subprocess.PIPE, shell=True,
21+
+ encoding='utf-8', text=True)
22+
out, err = process.communicate()
23+
LOG.debug(("IPMI Command output: %(out)s and "
24+
"IPMI Command error: %(err)s and returncode: (code)s"),
25+
--
26+
2.25.1

containers/ironic/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0002_skip_reboot_firmware_update.patch
22
0001-storage-controller_mode-update.patch
33
0001-pass-along-physical_network-to-neutron-from-the-bare.patch
4+
0001-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch

0 commit comments

Comments
 (0)