-
Bug
-
Resolution: Done
-
Normal
-
7.9
-
False
-
False
-
2022-Q3
After running the conversion a first time in a Oracle Linux 7 vagrant box, I got the following error:
[12/14/2021 17:30:52] TASK - [Prepare: Check kernel compatibility with RHEL] ******************** WARNING - Booted kernel version '5.4.17' does not correspond to the version '3.10.0' available in RHEL 7 [12/14/2021 17:30:52] DEBUG - Calling command 'rpm -qf --qf %{{NAME}} /boot/vmlinuz-5.4.17-2136.300.7.el7uek.x86_64' [12/14/2021 17:30:52] DEBUG - Booted kernel package name: error: incorrect format: unknown tag [12/14/2021 17:30:52] DEBUG - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 89, in main checks.perform_pre_checks() File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 51, in perform_pre_checks check_rhel_compatible_kernel_is_used() File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 374, in check_rhel_compatible_kernel_is_used _bad_kernel_package_signature(system_info.booted_kernel), File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 425, in _bad_kernel_package_signature kernel_pkg_obj = get_installed_pkg_objects(kernel_pkg)[0] IndexError: list index out of range
The tag to use in the rpm query format is wrong, it should be
{NAME}instead of NAME when calling it directly into run_subprocess() function.
Line of code: https://github.com/oamg/convert2rhel/blob/main/convert2rhel/checks.py#L424
Steps I did before getting this error:
$ yum update && yum install kernel $ convert2rhel ...
- clones
-
RHELC-126 Unknown tag in rpm query format call
- Closed