-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
False
-
False
-
-
1
-
Testable
-
rhel-conversions
-
-
-
In some (possibly rare) cases, there is an Unhandled exception caught when validating the initramfs files.
The output of subprocesses is decoded with 'utf-8', but the /usr/bin/lsinitrd is not particularly happy about that in some cases.
[2024-08-22T23:53:39+0000] TASK - [Final: Check kernel boot files] ***********************************
[2024-08-22T23:53:39+0000] DEBUG - Calling command 'rpm -q --last kernel-core'
Checking if the '/boot/vmlinuz-4.18.0-553.16.1.el8_10.x86_64' file exists.
Checking if the '/boot/initramfs-4.18.0-553.16.1.el8_10.x86_64.img' file exists.
Checking if the '/boot/initramfs-4.18.0-553.16.1.el8_10.x86_64.img' file is valid.
[2024-08-22T23:53:39+0000] DEBUG - Checking if the '/boot/initramfs-4.18.0-553.16.1.el8_10.x86_64.img' file is not corrupted.
[2024-08-22T23:53:39+0000] DEBUG - Calling command '/usr/bin/lsinitrd /boot/initramfs-4.18.0-553.16.1.el8_10.x86_64.img'
ERROR - (ERROR) KERNEL_BOOT_FILES::UNEXPECTED_ERROR - Unhandled exception caught
Description: Unhandled exception was caught: 'utf-8' codec can't decode byte 0xbb in position 23: invalid start byte
Please file a bug at https://issues.redhat.com/ to have this fixed or a specific error message added.
Traceback: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/convert2rhel/actions/__init__.py", line 572, in run
action.run()
File "/usr/lib/python3.6/site-packages/convert2rhel/actions/post_conversion/kernel_boot_files.py", line 66, in run
is_initramfs_valid = checks.is_initramfs_file_valid(initramfs_file)
File "/usr/lib/python3.6/site-packages/convert2rhel/checks.py", line 55, in is_initramfs_file_valid
print_output=False,
File "/usr/lib/python3.6/site-packages/convert2rhel/utils/__init__.py", line 357, in run_subprocess
line = line.decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 23: invalid start byte
Diagnosis: N/A
Remediations: N/A
Affects Alma Linux 8.10
Full log
Not sure if reproducible outside the test environment, but during the test we call
dd if=/dev/urandom bs=1024 count=1 of=/boot/initramfs
right when this Task header appears TASK - [Prepare: Final modifications to the system]
- links to
-
RHEA-2024:143554
convert2rhel bug fix and enhancement update
-
RHEA-2024:143556
convert2rhel bug fix and enhancement update
-
RHEA-2024:143557
convert2rhel bug fix and enhancement update