Bug 2216954

Summary: Actor: check_installed_kernels: Cannot find any installed kernel signed by Red Hat.
Product: Red Hat Enterprise Linux 7 Reporter: Jan Stodola <jstodola>
Component: leappAssignee: Leapp team <leapp-notifications>
Status: CLOSED NOTABUG QA Contact: Upgrades and Supportability <upgrades-and-supportability>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: leapp-notifications, pstodulk
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-23 12:44:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.