Bug 2216954 - Actor: check_installed_kernels: Cannot find any installed kernel signed by Red Hat.
Summary: Actor: check_installed_kernels: Cannot find any installed kernel signed by Re...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Leapp team
QA Contact: Upgrades and Supportability
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-23 11:37 UTC by Jan Stodola
Modified: 2023-07-11 07:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-23 12:44:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-160585 0 None None None 2023-06-23 12:46:08 UTC

Description Jan Stodola 2023-06-23 11:37:46 UTC
Description of problem:
An attempt to upgrade latest-RHEL-7.9 to latest-RHEL-8.9.0 fails with:

============================================================
                           ERRORS                           
============================================================

2023-06-23 13:27:47.745086 [ERROR] Actor: check_installed_kernels
Message: Cannot find any installed kernel signed by Red Hat.

============================================================
                       END OF ERRORS                        
============================================================


Version-Release number of selected component (if applicable):
[root@localhost ~]# rpm -qa | grep leapp
python2-leapp-0.15.1-1.el7_9.noarch
leapp-0.15.1-1.el7_9.noarch
leapp-deps-0.15.1-1.el7_9.noarch
leapp-upgrade-el7toel8-deps-0.18.0-4.el7_9.noarch
leapp-upgrade-el7toel8-0.18.0-4.el7_9.noarch
[root@localhost ~]#
[root@localhost ~]# rpm -qa | grep kernel
kernel-3.10.0-1160.94.1.el7.x86_64
kernel-tools-3.10.0-1160.94.1.el7.x86_64
kernel-tools-libs-3.10.0-1160.94.1.el7.x86_64
[root@localhost ~]#

How reproducible:
Always

Steps to Reproduce:
1. Install latest-RHEL-7.9 compose, Server variant, minimal package set
2. # yum install leapp-upgrade
3. Create RHEL-8 repositories, disabled by default
4. # export LEAPP_UNSUPPORTED=1
5. # export LEAPP_DEVEL_SKIP_CHECK_OS_RELEASE=1
6. # leapp upgrade --no-rhsm --enablerepo AppStream --enablerepo BaseOS


Actual results:
2023-06-23 13:27:47.745086 [ERROR] Actor: check_installed_kernels
Message: Cannot find any installed kernel signed by Red Hat.

Expected results:
No error, successful upgrade

Comment 6 Petr Stodulka 2023-06-23 12:44:43 UTC
Hi \o thank you for the ticket. this is valid behaviour. you do not have installed kernel (and many other pkgs..) signed by red hat and in such a case this - valid behaviour. if you are installing testing packages that are not signed yet, you have to set additional devel envar to make actors trat all installed packages as signed by red hat: 
* https://leapp.readthedocs.io/en/latest/el7toel8/envars.html#leapp-devel-rpms-all-signed

Comment 7 Petr Stodulka 2023-06-23 12:52:03 UTC
Sorry for the number of typos. I wrote the msg in rush.


Note You need to log in before you can comment on or make changes to this bug.