Files
ironic-python-agent/ironic_python_agent/extensions
Julia Kreger d77424d731 Fix UTF-16 result handling for efibootmgr
The tl;dr is that UEFI NVRAM is in encoded
in UTF-16, and when we run the efibootmgr command,
we can get unicode characters back.

Except we previously were forcing everything to be
treated as UTF-8 due to the way oslo.concurrency's
processutils module works.

This could be observed with UTF character 0x00FF
which raises up a nice exception when we try to
decode it.

Anyhow! while fixing handling of this, we discovered
we could get basically the cruft out of the NVRAM,
by getting what was most likey a truncated string
out of our own test VMs. As such, we need to also
permit decoding to be tollerant of failures.
This could be binary data or as simple as flipped
bits which get interpretted invalid characters.
As such, we have introduced such data into one of our
tests involving UEFI record de-duplication.

Closes-Bug: 2015602
Change-Id: I006535bf124379ed65443c7b283bc99ecc95568b
(cherry picked from commit 76accfb880)
(cherry picked from commit 9f84c8b3d1)
2023-04-27 14:28:05 -07:00
..
2014-04-14 15:09:12 -07:00
2021-05-18 12:59:28 +02:00
2016-06-28 17:02:11 +01:00
2020-06-21 16:44:00 +08:00
2020-03-19 15:16:00 +01:00