Leapp upgrade failing OEL8

Problem:
Unable to Leapp upgrade OEL8-9
Expected outcome:
Leapp preupgrade success
Foreman and Proxy versions:
3.12
Foreman and Proxy plugin versions:
same

Hi all,
I have just gone to upgrade Foreman w/Katello to latest through a stepped upgrade, then found that Foreman no longer supports OEL8 :frowning:

I’ve therefore followed the Leapp upgrade notes ( Upgrading Foreman to 3.12)

and have the following errors during the preupgrade check:

2025-06-17 11:34:43.035142 [ERROR] Actor: remove_obsolete_gpg_keys
Message: Cannot find distribution signature configuration.
Summary:
Problem: Distribution ol was not found in /etc/leapp/repos.d/system_upgrade/common/files/distro.
2025-06-17 11:35:03.775021 [ERROR] Actor: distribution_signed_rpm_scanner
Message: Cannot find distribution signature configuration.
Summary:
Problem: Distribution ol was not found in /etc/leapp/repos.d/system_upgrade/common/files/distro.

Please could someone advise. I’m running the latest patches for OEL8 as well as Foreman/Katello v3.12

Is leapp-data-ol installed from our Leapp repo?

Ah, it wasn’t installed, no. I read the instuctions and saw that it said note: if running rhel you can skip this step (stupidly presumed rhel would be same as oracle, so skipped it)

Anyway, i’ve made some progress. No errors no, but 3 inhibitors - the main worst one is that it’s saying can’t upgrade due to OS (we are running oracle linux 8)

Risk Factor: high (inhibitor)
Title: The installed OS version is not supported for the in-place upgrade to the target RHEL version
Summary: The supported OS releases for the upgrade process:
- RHEL 8.8
- RHEL 8.10
- RHEL-SAPHANA 8.8
- RHEL-SAPHANA 8.10
- CENTOS 8.999
- ALMALINUX 8.10
- ROCKY 8.10

The detected OS release is: OL 8.10

From which source did you install leapp? As far as I know Oracle does provide its own version from their own repositories.

Given it lists CentOS and Alma, this is the right leapp.

Seems we forgot to add Oracle to the patch we carry, sorry!

Have a look at add AlmaLinux and Rocky 8.10 support Ā· evgeni/leapp-repository@c5d28fe Ā· GitHub

you need to add 'ol': ['8.10'] to that list, the file is part of the leapp-upgrade-el8toel9 package

Sorry but please could you confirm exactly what I need to edit or change. Seems to be the version py file, right?

nevermind, found the code and have added and re-running leapp. looks better so far other than needing to install a vdi package

Ok, might be worth adding a note to your guide to say that all repos set within /etc/yum.repos.d should be disabled (other than the copr-foreman one that gets installed during Leapp setup).
The only repos that should get used during the upgrade are set within the leapp/files directory. I had multiple conflicts errors until I disabled the standard repos, now all is good. might save others a lot of time

When I tested the upgrades on Alma, I didn’t have to disable anything. If you have the terminal output with the errors, I’ll look into them.

I don’t sorry. It’s part of the main Leapp instructions though and only knew to do it when following those a few months ago upgrading a fleet of OEL servers. Leapp wants only the repos in it’s files dir, plus the copr repo in repos.d.
Any others, especially oracle related, tend to cause conflicts

I am also performing a OEL8 to OEL 9 Leapp and I get the following in my leapp-report.txt:

Risk Factor: high (error)

Title: Unable to obtain kernel information of the booted kernel: no package is providing the booted kernel release returned by uname.

Risk Factor: high (error)
Title: Unable to obtain kernel information of the booted kernel: no package is providing the booted kernel release returned by uname.
Summary:
Key: b573c1e7cbe24056e957d75438bf033515869d6b

Risk Factor: high

Title: Packages available in excluded repositories will not be installed

Summary: 2 packages will be skipped because they are available only in target system repositories that are intentionally excluded from the list of repositories used during the upgrade. See the report message titled ā€œExcluded target system repositoriesā€ for details.

The list of these packages:
- jitterentropy-devel (repoid: codeready-builder-for-rhel-9-x86_64-rpms)
- libtracecmd-devel (repoid: codeready-builder-for-rhel-9-x86_64-rpms)
Key: 2437e204808f987477c0e9be8e4c95b3a87a9f3e

Risk Factor: info

Title: Excluded target system repositories

Summary: The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.

- codeready-builder-beta-for-rhel-9-ppc64le-rpms
- codeready-builder-for-rhel-9-ppc64le-rpms
- codeready-builder-for-rhel-9-s390x-eus-rpms
- codeready-builder-for-rhel-9-s390x-rpms
- rhui-codeready-builder-for-rhel-9-aarch64-rhui-rpms
- codeready-builder-for-rhel-9-aarch64-rpms
- rhui-codeready-builder-for-rhel-9-x86_64-rhui-rpms
- codeready-builder-for-rhel-9-x86_64-eus-rpms
- codeready-builder-for-rhel-9-aarch64-eus-rpms
- codeready-builder-beta-for-rhel-9-aarch64-rpms
- codeready-builder-for-rhel-9-ppc64le-eus-rpms
- codeready-builder-beta-for-rhel-9-s390x-rpms
- codeready-builder-for-rhel-9-x86_64-rpms
- codeready-builder-for-rhel-9-rhui-rpms
- codeready-builder-for-rhel-9-x86_64-rhui-rpms
- codeready-builder-beta-for-rhel-9-x86_64-rpms
Remediation: [hint] If some of excluded repositories are still required to be used during the upgrade, execute leapp with the --enablerepo option with the repoid of the repository required to be enabled as an argume        nt (the option can be used multiple times).

version.py:

/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/config/version.py

# TODO(pstodulk): drop 9.4 & 9.5 before May 2025 release
# These will not be supported fo IPU 9 -> 10
_SUPPORTED_VERSIONS = {
    # Note: 'rhel-alt' is detected when on 'rhel' with kernel 4.x
    '7': {'rhel': ['7.9'], 'rhel-alt': [], 'rhel-saphana': ['7.9'], 'centos': ['7.999']},
    '8': {'rhel': ['8.8', '8.10'], 'rhel-saphana': ['8.8', '8.10'], 'centos': ['8.999'], 'almalinux': ['8.10'], 'rocky': ['8.10'], 'ol': ['8.10']},
    '9': {'rhel': ['9.4', '9.5', '9.6'], 'rhel-saphana': ['9.4', '9.6']},
}

/etc/leapp/files/leapp_upgrade_repositories.repo

ol9_baseos_latest]
name=Oracle Linux 9 BaseOS Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_appstream]
name=Oracle Linux 9 Application Stream Packages ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/appstream/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[leapp-foreman]
name=Foreman 3.12
baseurl=https://yum.theforeman.org/releases/3.12/el9/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman
enabled=0
gpgcheck=1

[leapp-foreman-plugins]
name=Foreman plugins 3.12
baseurl=https://yum.theforeman.org/plugins/3.12/el9/$basearch
enabled=0
gpgcheck=0

[leapp-katello]
name=Katello 4.14
baseurl=https://yum.theforeman.org/katello/4.14/katello/el9/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman
enabled=0
gpgcheck=1

[leapp-candlepin]
name=Candlepin: an open source entitlement management system.
baseurl=https://yum.theforeman.org/candlepin/4.4/el9/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin
enabled=1

[leapp-pulpcore]
name=pulpcore: Fetch, Upload, Organize, and Distribute Software Packages.
baseurl=https://yum.theforeman.org/pulpcore/3.49/el9/$basearch/
gpgkey=https://yum.theforeman.org/pulpcore/3.49/GPG-RPM-KEY-pulpcore
enabled=1
gpgcheck=1

[leapp-puppet7]
name=Puppet 7 Repository el 9 - $basearch
baseurl=http://yum.puppetlabs.com/puppet7/el/9/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-2025-04-06-puppet7-release
enabled=1
gpgcheck=1

[leapp_codeready_builder]
name=Oracle Linux 9 CodeReady Builder ($basearch) - Unsupported
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/codeready/builder/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

preupgrade command:

leapp preupgrade --enablerepo ol9_codeready_builder

uname:

Linux Satellite.NoDomain.NoWhere 5.4.17-2136.344.4.1.el8uek.x86_64 #3 SMP Mon Jun 9 16:15:55 PDT 2025 x86_64 x86_64 x86_64 GNU/Linux

os-release

cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.10"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.10"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:10:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.10
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.10

I have disabled my oel8 repos as one of the previous entries has suggested.

Any Suggestions ?