Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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: rcFlags: pm-rhel: mirror+
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.