So I started looking into updating our main Foreman server from CentOS 7 to RoclyLinux 8 using the instrucitons outlined in Upgrading and Updating Foreman
Things went pretty smooth till step 7 - Let Leapp analyze your system:
When I run ‘leapp preupgrade’ - all runs fine until ==> Processing phase TargetTransactionFactsCollection
It produces this message:
============================================================
ERRORS
============================================================
2022-10-11 13:20:04.184510 [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', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.6', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_IPU_IN_PROGRESS=7to8', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=7582be75-1f0e-4059-94ba-69a43c433a5b', '--setenv=LEAPP_HOSTNAME=<my hostname>', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:el8', '--setopt=keepcache=1', '--releasever', u'8.6', '--installroot', '/el8target', '--disablerepo', '*', '--enablerepo', u'leapp-foreman-client', '--enablerepo', u'leapp-foreman', '--enablerepo', u'leapp-foreman-plugins', '--enablerepo', u'leapp-katello-candlepin', '--enablerepo', u'leapp-puppet6', '--enablerepo', u'leapp-pulpcore', '--enablerepo', u'leapp-katello', 'dnf', 'dnf-command(config-manager)', '--disableplugin', 'subscription-manager'] failed with exit code 1.
Stderr: Host and machine ids are equal (<my machine id>): refusing to link journals
Error: Unable to find a match: dnf dnf-command(config-manager)
I have no clue why it says “Host and machine ids are equal” - when I generate a new machine ID I just get the same message with the new ID - but afaik that should not be a showstopper.
But the “Unable to find a match …” is a real error - I did some research but no solution so far - any suggestions ? (the only thing I found was about updating dnf but it’s already on the latest version available for CenOS 7 …)
(plan B would be to spin up a new server with RockyLinux 8 and migrate to that server but that is probably a much bigger task)