forked from oamg/convert2rhel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RHELC-1672, RHELC-1707, RHELC-1708] Detect a newer version of RHEL k…
…ernel in the main transaction (oamg#1323) * Detect a newer version of RHEL kernel in main transaction * detect if the installed RHEL kernel either replaces all original kernel packages or if a newer version is installed Signed-off-by: Daniel Diblik <[email protected]> * Address review comments Signed-off-by: Daniel Diblik <[email protected]> * Fix unit tests Signed-off-by: Daniel Diblik <[email protected]> * Fix incomplete pkghandler.get_highest_package_version * the function was not complete and the evaluation was wrong (e.g. "9" > "10") Signed-off-by: Daniel Diblik <[email protected]> * Add new unit tests for InstallRhelKernel After Daniel's fix of the InstallRhelKernel, the new unit test are needed to cover those changes. * Don't use libraries for version comparison * drop the distutils and packaging libraries, use the compare_package_version function instead * address review comments Signed-off-by: Daniel Diblik <[email protected]> * Fix message formatting, add debug, add test * fix the formatting of info message for conflicting kernel version * add debug loggerinst for highest found kernel version * add integration test verifying the latest kernel is installed after the conversion * revert if not non_rhel_kernels back to elif not non_rhel_kernels Signed-off-by: Daniel Diblik <[email protected]> * Fix update RHEL kernel call Due regression RHELC-1707 was found, we needed to change place where kernel update is called. Without this change the system could end up with outdated kernel installed. * Minor changes to test_yum_check_update * use wildcard asterisk to check all kernel related packages * document which packages are verified Signed-off-by: Daniel Diblik <[email protected]> --------- Signed-off-by: Daniel Diblik <[email protected]> Co-authored-by: Adam Hosek <[email protected]>
- Loading branch information
Showing
6 changed files
with
353 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.