Red Hat Capsule 6.16 in-place upgrade from RHEL 8 to RHEL 9 fails with error `Unable to install RHEL 9 userspace packages`
Environment
- Red Hat Capsule 6.16
Issue
-
The leapp upgrade from
RHEL 8 to RHEL 9onRed Hat Capsule 6.16fails with the error as shown below:Risk Factor: high (error) Title: 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=capsule.example.com', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_TARGET_PRODUCT_CHANNEL=ga', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.5', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=XYZ', '--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.5', '--installroot', '/el9target', '--disablerepo', '*', '--enablerepo', 'rhel-9-for-x86_64-appstream-rpms', '--enablerepo', 'satellite-maintenance-6.16-for-rhel-9-x86_64-rpms', '--enablerepo', 'satellite-capsule-6.16-for-rhel-9-x86_64-rpms', '--enablerepo', 'rhel-9-for-x86_64-baseos-rpms', 'dnf-command(config-manager)', 'dnf', 'util-linux'] failed with exit code 1.", "stderr": "Host and machine ids are equal (XYZ): refusing to link journals\nErrors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-rpms':\n - Status code: 404 for https://satellite.example.com/pulp/content/Default_Organization/Capsules/CV/content/dist/rhel9/9.5/x86_64/appstream/os/repodata/repomd.xml (IP: 10.XX.XYZ.PP)\nError: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried\n"}
Resolution
- Please refer to the KB solution Running leapp upgrade on Content Hosts registered with Red Hat Satellite 6 fails with Message: Unable to install RHEL X userspace packages which also applies to Red Hat Capsule servers.
For more KB articles/solutions related to Red Hat Satellite 6.x LEAPP Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x LEAPP Issues
Root Cause
- The leapp utility tries to set the upgrade to RHEL 9.5 if the standard release repository is enabled. However, currently the in-place upgrade is supported from RHEL 8.10 to RHEL 9.4 or RHEL 9.6.
SBR
Product(s)
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.