Re-installation of a RHEL based RHEV hypervisor fails with a qemu-kvm-tools conflict
Environment
- Red Hat Enterprise Virtualization (RHEV) 3.2
- Red Hat Enterprise Linux (RHEL) 6.4
Issue
- After a storage failure two RHEL based hosts became non-responsive.
-
Attempting to reactivate the hosts failed. The hosts were put into maintenance mode and reinstallation via RHEV Manager GUI was attempted. Both hosts failed with this error in the events log:
Failed to execute stage 'Package installation': ['qemu-kvm-rhev-tools conflicts with 2:qemu-kvm-tools-0.12.1.2-2.415.el6_5.3.x86_64']
Resolution
-
Manually remove
qemu-kvm-tools
from each host with the followingyum
command:# yum remove qemu-kvm-tools
- After
qemu-kvm-tools
is removed, attempt re-installation for each host via the RHEV Manager GUI. - Once the hosts are re-installed, they should able to resume normal activity.
Root Cause
- There is an inconsistent yum database on each of the hosts. This could be the result of an attempt to update the RHEL-based hosts with yum outside of the RHEV Manager UI. For whatever reason, yum insisted that
qemu-kvm-tools
was queued up to be installed beforevdsm
. This caused a conflict with thevdsm
required packageqemu-kvm-rhev-tools
, and thevdsm
package installation failed.
The log signature contained the following:
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum queue package qemu-kvm-tools for install
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum package qemu-kvm-tools queued
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum queue package vdsm for install
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum package vdsm queued
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum queue package vdsm-cli for install
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum package vdsm-cli queued
2013-12-02 20:33:41 DEBUG otopi.context context._executeMethod:116 Stage packages METHOD otopi.plugins.ovirt_host_deploy.gluster.packages.Plugin._packages
2013-12-02 20:33:41 DEBUG otopi.context context._executeMethod:122 condition False
2013-12-02 20:33:41 DEBUG otopi.context context._executeMethod:116 Stage packages METHOD otopi.plugins.ovirt_host_deploy.tune.tuned.Plugin._packages
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum queue package tuned for install
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum package tuned queued
2013-12-02 20:33:41 DEBUG otopi.context context._executeMethod:116 Stage packages METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._packages
2013-12-02 20:33:41 DEBUG otopi.plugins.otopi.packagers.yumpackager miniyumlocal.verbose:49 Yum Building transaction
2013-12-02 20:33:42 ERROR otopi.plugins.otopi.packagers.yumpackager miniyumlocal.error:58 Yum ['qemu-kvm-rhev-tools conflicts with 2:qemu-kvm-tools-0.12.1.2-2.415.el6_5.3.x86_64']
2013-12-02 20:33:42 DEBUG otopi.context context._executeMethod:130 method exception
Diagnostic Steps
- Hosts with this peculiar setup will enter a
non-operational
status if any VM action is attempted. Once the hosts have entered this state, any attempt to reactivate them via the RHEV Manager GUI will fail, but without any significant error message. - Re-installation of the hosts via the RHEV Manager GUI will fail with the conflict message above.
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.
Comments