leapp fails when upgraded from RHEL 8.8 to RHEL 9 with Unable to install RHEL 9 userspace packages.

Solution Verified - Updated -

Issue

When upgrading from RHEL 8.8 to RHEL 9, leapp fails with:

2024-09-05 12:52:35.345935 [ERROR] Actor: target_userspace_creator
Message: Unable to install RHEL 9 userspace packages.
Summary:
    Details: Command ['systemd-nspawn', '--register=no', '--quiet', '--keep-unit', '--capability=all', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--setenv=LEAPP_HOSTNAME=r8.lan', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.2', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=aa29e8fa-452e-4dfe-8710-4b9ba32e9278', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/common/tools:/etc/leapp/repos.d/system_upgrade/el8toel9/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el8toel9/files', 'dnf', 'install', '-y', '--setopt=module_platform_id=platform:el9', '--setopt=keepcache=1', '--releasever', '9.2', '--installroot', '/el9target', '--disablerepo', '*', '--enablerepo', 'rhel-9-for-x86_64-appstream-eus-rpms', '--enablerepo', 'rhel-9-for-x86_64-appstream-rpms', '--enablerepo', 'rhel-9-for-x86_64-baseos-rpms', 'dnf-command(config-manager)', 'dnf'] failed with exit code 1.
    Stderr: Host and machine ids are equal (1d4dfab59097458ab70b07793b746904): refusing to link journals
            Errors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-eus-rpms':
              - Status code: 404 for https://cdn.redhat.com/content/eus/rhel9/8.8/x86_64/appstream/os/repodata/repomd.xml (IP: 23.13.176.251)
            Error: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Environment

Red Hat Enterprise Linux 8.8
leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content