efibootmgr is returning utf-8
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Ironic |
Triaged
|
High
|
Jakub Jelinek | ||
| ironic-python-agent |
Fix Released
|
High
|
Morten Stephansen | ||
Bug Description
During node deploy or clean, Ironic Python Agent is doing call to efibootmgr in order for example to clean the EFI boot table
When IPA is calling get_boot_records() https:/
It seems that on some motherboards, like the one we are using (Tyan manufacturer), efibootmgr is returning UTF-8
/opt/ironic-
Python 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ironic_python_agent import utils
>>> efi_output = utils.execute(
>>> print (efi_output)
(b'BootCurrent: 0004\nTimeout: 1 seconds\nBootOrder: 0004,0005,
>>> cmd_output = efi_output[
>>> print (cmd_output)
潂瑯畃牲湥㩴〠
㐺㩄㜴倉楣潒瑯〨⼩
⼩捐⡩砰砰⤱倯楣〨へ〬
>>>
>>> cmd_output = efi_output[
>>> print (cmd_output)
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0005,
Boot0000* AMIFWUpdate VenMedia(
Boot0001 UEFI: Built-in EFI Shell VenMedia(
Boot0002 debian VenHw(99e275e7-
Boot0004* UEFI: PXE IP4 Mellanox Network Adapter - A0:42:3F:41:4D:46 PciRoot(
Boot0005* UEFI: PXE IP4 Mellanox Network Adapter - A0:42:3F:41:4D:47 PciRoot(
Boot0006* UEFI: PXE IP4 Mellanox Network Adapter - 0C:42:A1:3D:3E:E8 PciRoot(
Boot0007* UEFI: PXE IP4 Mellanox Network Adapter - 0C:42:A1:3D:3E:E9 PciRoot(
Boot0009 AMI Virtual CDROM0 1.00 BBS(USB,
Boot002D* UEFI: PXE IP4 American Megatrends Inc. PciRoot(
The impact of that bug is that IPA is not cleaning the partition table, and deploy after deploy, filling the EFI table.
| Changed in ironic: | |
| importance: | Undecided → High |
| status: | New → Triaged |
| Changed in ironic: | |
| assignee: | nobody → Jakub Jelinek (kubajj) |
| Changed in ironic-python-agent: | |
| assignee: | nobody → Jakub Jelinek (kubajj) |
| importance: | Undecided → High |
| Changed in ironic-python-agent: | |
| assignee: | Jakub Jelinek (kubajj) → Morten Stephansen (mostepha) |

Fix proposed to branch: master /review. opendev. org/c/openstack /ironic- python- agent/+ /956068
Review: https:/