Running leapp upgrade on Content Hosts registered with Red Hat Satellite 6 fails with Message: Unable to install RHEL 8 userspace packages.

Solution Verified - Updated -

Issue

  • Upgrading RHEL-7.8 Content Hosts registered with Red Hat Satellite 6 to RHEL-8.2 using leapp upgrade fails with below error.

    2020-01-01 00:00:00.12345 [ERROR] Actor: target_userspace_creator
    Message: Unable to install RHEL 8 userspace packages.
    Summary:
       Details: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--bind=/etc/hosts:/etc/hosts', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_EXPERIMENTAL=0', '
    --
    setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '
    --
    setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=123456-abcd-efgh-7890-7dd0123456789', '--setenv=LEAPP_HOSTNAME=client.example.com', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:el8', '--setopt=keepcache=1', '--releasever', u'8.2', '--installroot','/el8target', '--disablerepo', '*', '--enablerepo', u'rhel-8-for-x86_64-baseos-rpms', '--enablerepo', u'rhel-8-for-x86_64-appstream-rpms', '--enablerepo', u'rhel-8-for-x86_64-supplementary-rpms', '--enablerepo', u'rhel-8-for-x86_64-baseos-rpms', '--enablerepo',u'rhel-8-for-x86_64-appstream-rpms', '--enablerepo', u'rhel-8-for-x86_64-appstream-rpms', '--enablerepo', u'rhel-8-for-x86_64-baseos-rpms', 'dnf'] failed with exit code 1.
       Stderr: Host and machine ids are equal
    (123a45678b901234c567d8901234efg5): refusing to link journals
               Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms', ignoring this repo.
               Failed to synchronize cache for repo 'rhel-8-for-x86_64-supplementary-rpms', ignoring this repo.
               Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-rpms', ignoring this repo.
               Error: Unable to find a match: dnf
    

    Or, the error message will be following.

    2020-01-01 00:00:00.12345 [ERROR] Actor: target_userspace_creator
    Message: Cannot find required basic RHEL 8 repositories.
    

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In