-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
6.16.0
Description of problem:
If the kernel version is lower than the version present in the repository, Convert 2 RHEL playbook job fails with the below error message :
~~~
========== Overridable (Review and either fix or ignore the failure) ==========
(OVERRIDABLE) IS_LOADED_KERNEL_LATEST::INVALID_KERNEL_VERSION - Invalid kernel
version detected
Description: The loaded kernel version mismatch the latest one available in
system repositories
Diagnosis: The version of the loaded kernel is different from the latest
version in system repositories.
Latest kernel version available in baseos: 4.18.0-348.7.1.el8_5
Loaded kernel version: 4.18.0-348.el8
Remediation: To proceed with the conversion, update the kernel version by
executing the following step:
1. yum install kernel-core-4.18.0-348.7.1.el8_5 -y
2. reboot
If you wish to ignore this message, set the environment variable
'CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK' to 1.
(OVERRIDABLE) PACKAGE_UPDATES::OUT_OF_DATE_PACKAGES - Outdated packages detected
Description: Please refer to the diagnosis for further information
Diagnosis: The system has 28 package(s) not updated based on repositories
defined in the system repositories.
List of packages to update: kernel kernel-core kernel-modules kernel-tools
kernel-tools-libs kexec-tools libgcc libgomp libsss_autofs libsss_certmap
libsss_idmap libsss_nss_idmap libsss_sudo libstdc++ openssl openssl-libs
python3-perf qemu-guest-agent selinux-policy selinux-policy-targeted sssd-client
sssd-common sssd-kcm sssd-nfs-idmap systemd systemd-libs systemd-pam systemd-
udev.
Not updating the packages may cause the conversion to fail.
Consider updating the packages before proceeding with the conversion.
Remediations: If you wish to ignore this message, set the environment
variable 'CONVERT2RHEL_OUTDATED_PACKAGE_CHECK_SKIP' to 1.
~~~
After manually applying the recommendation 1 and 2 :
~~~
- yum install kernel-core-4.18.0-348.7.1.el8_5 -y
- reboot
.. - export CONVERT2RHEL_OUTDATED_PACKAGE_CHECK_SKIP=1
- echo $CONVERT2RHEL_OUTDATED_PACKAGE_CHECK_SKIP
1
- uname -a
Linux centos83.net.gtx 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
~~~
Running again Convert 2 RHEL Playbook, still failing with same error.
How reproducible:
100%
Workaround :
- Update all packages:
~~~
- dnf update -y
~~~
- Run Convert 2 RHEL again, it is successful
Is this issue a regression from an earlier version:
Steps to Reproduce:
1. Install CentOS 8.5 with kernel 4.18.0-348.el8 :
https://vault.centos.org/8.5.2111/isos/x86_64/CentOS-8.5.2111-x86_64-dvd1.iso
2. Follow the upgrade doc - configure repo, install convert2rhel, register to satellite
3. Run Convert 2 RHEL Playbook from Satellite
Actual behavior:
Failing with the above error
Expected behavior:
- Remediation: should give more accurate steps , like dnf update -y
- Convert 2 RHEL should ignore outdated package if CONVERT2RHEL_OUTDATED_PACKAGE_CHECK_SKIP is set to 1
Business Impact / Additional info: