Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJesús Pérez Martínez
2023-07-18 07:33:19 UTC
Description of problem:
Leapp preupgrade is unable to find the target RHEL 9 Appstream and BaseOS repositories in RHEL 8 GCP PAYG systems using RHUI.
Following the same steps in RHEL 7 GCP PAYG systems, it works as expected.
Version-Release number of selected component (if applicable):
leapp-rhui-google-1.0.0-1.el8.noarch
How reproducible:
Always
Steps to Reproduce:
1. Do the standard preupgrade preparation of the system.
2. Install RHUI client following our documentation: https://access.redhat.com/articles/6981918
3. Run Leapp preupgrade without rhsm: leapp preupgrade --no-rhsm
Actual results:
Preupgrade fails with:
~~~
2023-07-11 20:06:56.912613 [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=test.localhost', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=1', '--setenv=LEAPP_NO_RHSM_FACTS=1', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.2', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=b380f188-b5ed-49e0-aae8-8ef1b348c63b', '--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', 'google-compute-engine-leapp', 'google-rhui-client-rhel9', 'dnf-command(config-manager)', 'dnf', '--disableplugin', 'subscription-manager'] failed with exit code 1.
Stderr: Host and machine ids are equal (eb19b2ed0e9a713494880fd61cadd743): refusing to link journals
No matches found for the following disable plugin patterns: subscription-manager
Error: Unable to find a match: dnf-command(config-manager) dnf
~~~
Additional info:
Adding both AppStream and BaseOS RHEL 9 repositories to "/etc/leapp/files/leapp_upgrade_repositories.repo" fixes the issue.
The issue was caused by introducing the $basearch variable in the repoid of the rhel9 repositories since the google-rhui-client-rhel9-4.1-1 client or earlier rpm.
We fixed this on our side by releasing a new leapp-rhui-google-1.0.0-2 in the following article: https://access.redhat.com/articles/6981918