Red Hat Capsule 6.16 in-place upgrade from RHEL 8 to RHEL 9 fails with error `Unable to install RHEL 9 userspace packages`
Issue
-
The leapp upgrade from
RHEL 8 to RHEL 9
onRed Hat Capsule 6.16
fails 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"}
Environment
- Red Hat Capsule 6.16
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.