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.
Bug 825168 - 3.1 (cloned to 6.3.z) - KVM version is N/A in RHEVM
Summary: 3.1 (cloned to 6.3.z) - KVM version is N/A in RHEVM
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Tomas Dosek
URL:
Whiteboard: infra
Depends On:
Blocks: 830787 834105
TreeView+ depends on / blocked
 
Reported: 2012-05-25 09:37 UTC by Guohua Ouyang
Modified: 2012-08-10 15:07 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Red Hat Enterprise Linux 6.3 included the new qemu-kvm-rhev package. Existing versions of VDSM were not able to correctly determine the version information for hosts with qemu-kvm-rhev installed. As a result the KVM version would be listed as 'N/A' for these hosts in the Red Hat Enterprise Virtualization Manager. VDSM has been updated and will now correctly report the KVM version for hosts, regardless of which qemu-kvm package is installed.
Clone Of:
Environment:
Last Closed: 2012-06-23 15:15:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Guohua Ouyang 2012-05-25 09:37:34 UTC
Description of problem:
KVM version is N/A after rhevh show up in rhevm.
if upgrade from rhevh-6.2-20111117.0 build to rhevh-6.3-20120523.1 build,
the kvm version displayed wrong version 0.12.1.2 - 2.209.el6

# rpm -qa | grep kvm
qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64

# rpm -qa | grep vdsm
vdsm-4.9-113.1.el6.x86_64

with rhevh-6.2-20111117.0 build, the kvm version is 0.12.1.2 - 2.209.el6 , so it's a regression issue of vdsm.

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.3-20120523.1.el6
vdsm-4.9-113.1.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. register rhevh to rhevm

Actual results:
KVM version is N/A in RHEVM 

Expected results:
KVM version is 0.12.1.2-2.295.el6

Comment 2 Mike Burns 2012-05-25 11:19:31 UTC
This is due to the move to qemu-kvm-rhev in 6.3.  

in vdsm/caps.py


    KEY_PACKAGES = ['qemu-kvm', 'qemu-img',
                    'vdsm', 'spice-server', 'libvirt']

    pkgs = {'kernel': kernelDict()}
    try:
        for pkg in KEY_PACKAGES:
            rc, out, err = utils.execCmd([constants.EXT_RPM, '-q', '--qf',
                  '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n', pkg],
                  sudo=False)
            if rc: continue
            line = out[-1]
            n, v, r, t = line.split()
            pkgs[pkg] = dict(version=v, release=r, buildtime=t)
    except:
        logging.error('', exc_info=True)

    return pkgs


This could be solved using "--whatprovides" flag to rpm command

            rc, out, err = utils.execCmd([constants.EXT_RPM, '-q', '--qf',
                  '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n',
                  '--whatprovides', pkg], sudo=False)

Comment 9 Dan Kenigsberg 2012-06-23 15:15:09 UTC
now that the patch has been pushed to the rhev-3.1 branch (v4.9.6-14-6-g3a0496e), this bug has exhausted its purpose.

Comment 10 Stephen Gordon 2012-08-10 15:07:31 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Red Hat Enterprise Linux 6.3 included the new qemu-kvm-rhev package. Existing versions of VDSM were not able to correctly determine the version information for hosts with qemu-kvm-rhev installed. As a result the KVM version would be listed as 'N/A' for these hosts in the Red Hat Enterprise Virtualization Manager. VDSM has been updated and will now correctly report the KVM version for hosts, regardless of which qemu-kvm package is installed.


Note You need to log in before you can comment on or make changes to this bug.