Leapp upgrade on Red Hat Satellite Server fail with error "broken groups or modules: virt:rhel"
Environment
- Red Hat Satellite 6.11
Issue
-
Leapp upgrade fail with below error on Red Hat Satellite Server:
[ERROR] Actor: dnf_transaction_check Message: DNF execution failed with non zero exit code. STDOUT: Last metadata expiration check: 0:01:08 ago on Fri Jan 20 07:58:10 2023. STDERR: Cannot enable multiple streams for module 'virt' Unable to resolve argument virt:rhel Error: Problems in request: broken groups or modules: virt:rhel
Resolution
-
On Red Hat Satellite Server remove "libvirt-daemon"* packages with below command.
# rpm -e --nodeps $(rpm -qa libvirt-daemon*) -
After the leapp upgrade is completed package will be installed back on Red Hat Satellite Server.
-
These "libvirt-daemon"* packages are a dependency to the foreman-discovery-image package. So even if the upgrade didn't install these packages back automatically, we could have just reinstalled the foreman-discovery-image package, and it should install all the libvirt-daemon packages as dependencies.
For more KB articles/solutions related to Red Hat Satellite 6.x LEAPP Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x LEAPP Issues
Root Cause
- This issue is already tracked in Bugzilla: This content is not included.Bug 2148470 - [leapp][PES] IPU 7->8: conflict with some libvirt packages
Diagnostic Steps
- Below error is observed in /var/log/leapp/leapp-upgrade.log file.
2023-01-20 07:59:17.470 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: The DNF configuration has been updated to exclude leapp packages.
2023-01-20 07:59:17.473 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: External command has started: ['systemd-nspawn', '--register=no', '--quiet', '-D', u'/var/lib/leapp/el8use
rspace', '--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/rep
os.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', '--sete
nv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=44097dd3-2e7f-4401-a8f8-31be413e28e5', '--setenv=LEAPP_HOSTNAME=rlx7020.corp.ads', '/usr/bin/dnf', 'rhel-upgrade', 'check', '/var/lib/leapp/dnf-plugin-data.t
xt']
2023-01-20 07:59:18.787 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: Last metadata expiration check: 0:01:08 ago on Fri Jan 20 07:58:10 2023.
2023-01-20 07:59:21.903 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: Cannot enable multiple streams for module 'virt'
2023-01-20 07:59:21.904 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: Unable to resolve argument virt:rhel
2023-01-20 07:59:22.236 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: Error: Problems in request:
2023-01-20 07:59:22.239 DEBUG PID: 32685 leapp.workflow.TargetTransactionCheck.dnf_transaction_check: broken groups or modules: virt:rhel
- Below "libvirt-daemon"* package is installed on Red Hat Satellite.
# rpm -qa | grep libvirt-
libvirt-daemon-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-logical-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-secret-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-rbd-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-iscsi-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-nodedev-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-libs-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
rubygem-fog-libvirt-0.9.0-1.el8sat.noarch
libvirt-daemon-driver-storage-scsi-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
python3-libvirt-8.0.0-1.1.module+el8.6.0+16381+3abc475c.x86_64
libvirt-daemon-driver-storage-disk-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-nwfilter-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-core-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-mpath-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-qemu-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
foreman-libvirt-3.1.1.25-1.el8sat.noarch
libvirt-daemon-driver-storage-gluster-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
rubygem-ruby-libvirt-0.7.1-2.1.el8sat.x86_64
libvirt-daemon-driver-network-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-kvm-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-interface-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
libvirt-daemon-driver-storage-iscsi-direct-8.0.0-5.5.module+el8.6.0+16828+96e76c36.x86_64
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.