Skip to content

Commit dafdd4f

Browse files
authored
Update troubleshoot-red-hat-os-upgrade-issues.md
Updated one more scenario that was identified recently. Associated ICM: https://portal.microsofticm.com/imp/v5/incidents/details/707934219/summary
1 parent f9fdc22 commit dafdd4f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

support/azure/virtual-machines/linux/troubleshoot-red-hat-os-upgrade-issues.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,32 @@ Base images:
429429
sudo dnf downgrade leapp-rhui-azure
430430
```
431431

432+
### preupgrade symptom 7: Preupgrade fails with "Unable to find a match: util-linux dnf dnf-command(config-manager) kpatch-dnf" error on RHEL 8.10 base image (non-SAP)
433+
434+
An in-place upgrade from **RHEL 8.10 to RHEL 9.x** base images(non-SAP) fails during the `leapp preupgrade` phase. The following error is reported in `/var/log/leapp/leapp-report.txt`:
435+
436+
```output
437+
====> Title: Unable to install RHEL 9 userspace packages.
438+
Summary: {"details": "Command ['systemd-nspawn', '--register=no', '--quiet', '--keep-unit', '--capability=all', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--setenv=LEAPP_HOSTNAME=rhel810.internal.cloudapp.net', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_NO_RHSM=1', '--setenv=LEAPP_NO_RHSM_FACTS=1', '--setenv=LEAPP_TARGET_PRODUCT_CHANNEL=ga', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=9.6', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_IPU_IN_PROGRESS=8to9', '--setenv=LEAPP_EXECUTION_ID=143879fb-a55b-406f-8eca-2c257c3e3e08', '--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.6', '--installroot', '/el9target', '--disablerepo', '*', '--enablerepo', 'rhui-microsoft-azure-rhel9', 'util-linux', 'dnf', 'rhui-azure-rhel9', 'dnf-command(config-manager)', 'kpatch-dnf', '--disableplugin', 'subscription-manager'] failed with exit code 1.", "stderr": "Host and machine ids are equal (32f9000d1b424a30bb3d02c4fd201983): refusing to link journals
439+
Error: Unable to find a match: util-linux dnf dnf-command(config-manager) kpatch-dnf
440+
"}
441+
Key: 0e5d8451adfe372b923058fd09028cb5356e733d
442+
```
443+
444+
#### Cause
445+
446+
During the preupgrade phase, Leapp installs a RHUI client version **(`rhui-azure-rhel9-2.3-900`)**. This version contains **incorrect repository IDs**, which prevents `dnf` from resolving required RHEL 9 packages.
447+
448+
#### preupgrade solution 7: Update the RHUI client to the latest version
449+
450+
A newer version of the RHUI client **(`rhui-azure-rhel*-901` or later)** includes the correct repository IDs required for the RHEL 8 to RHEL 9 in-place upgrade.
451+
452+
Before running `leapp preupgrade`, update the RHUI client package on the RHEL 8 system:
453+
454+
```bash
455+
dnf update rhui-azure-rhel8
456+
```
457+
432458
After you resolve all the inhibitors, run the preupgrade again, and make sure that all issues are resolved.
433459

434460
## Leapp upgrade common issues

0 commit comments

Comments
 (0)