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.

Bug 1074396

Summary: QMP: "query-version" doesn't include the -rhev prefix from the qemu-kvm-rhev package
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.6CC: bsarathy, hhuang, juli, juzhang, michen, mkenneth, qzhang, rbalakri, sluo, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.429.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1064742 Environment:
Last Closed: 2014-10-14 06:56:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1064742    
Bug Blocks:    

Comment 1 Sibiao Luo 2014-03-10 04:49:13 UTC
host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-447.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.422.el6.x86_64

{"execute":"qmp_capabilities"}
{"return": {}}
{"execute": "query-version"}
{"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2

Comment 2 Sibiao Luo 2014-03-11 07:00:30 UTC
(In reply to Sibiao Luo from comment #1)
> host info:
> # uname -r && rpm -q qemu-kvm-rhev
> 2.6.32-447.el6.x86_64
> qemu-kvm-rhev-0.12.1.2-2.422.el6.x86_64
> 
> {"execute":"qmp_capabilities"}
> {"return": {}}
> {"execute": "query-version"}
> {"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package":
> "(qemu-kvm-0.12.1.2
{"execute": "query-version"}
{"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}}

Comment 3 Sibiao Luo 2014-03-11 07:13:45 UTC
the expected results should display the whole qemu-kvm-*rhev*-0.12.1.2-2.*422*.el6 version.
e.g:
{"return": {"qemu": {"micro": 2, "minor": 12, "major": 0}, "package": " (qemu-kvm-rhev-0.12.1.2-2.422.el6)"}}

Comment 4 Miroslav Rezanina 2014-07-04 07:10:07 UTC
Fix included in qemu-kvm-0.12.1.2-2.429.el6

Comment 6 Qunfang Zhang 2014-07-10 05:41:00 UTC
Reproduced on qemu-kvm-rhev-0.12.1.2-2.428.el6:

[qzhang@dhcp-91-139 ~]$ telnet 10.66.**.** 5555
Trying 10.66.**.**...
Connected to 10.66.**.**.
Escape character is '^]'.
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}}

{"execute":"qmp_capabilities"}
{"return": {}}

{"execute":"query-version"}
{"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}}
^^^^^^^ The version does not include "*-rhev"


Verified pass on qemu-kvm-rhev-0.12.1.2-2.430.el6 and qemu-kvm-0.12.1.2-2.430.el6.

qemu-kvm-rhev-430:

[qzhang@dhcp-91-139 ~]$ telnet 10.66.**.** 5555
Trying 10.66.**.**...
Connected to 10.66.**.**.
Escape character is '^]'.
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-rhev-0.12.1.2-2.430.el6)"}, "capabilities": []}}


{"execute":"qmp_capabilities"}
{"return": {}}

{"execute":"query-version"}
{"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-rhev-0.12.1.2-2.430.el6)"}}


qemu-kvm-430:

[qzhang@dhcp-91-139 ~]$ telnet 10.66.**.** 5555
Trying 10.66.**.**...
Connected to 10.66.**.**.
Escape character is '^]'.
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2-2.430.el6)"}, "capabilities": []}}

{"execute":"qmp_capabilities"}
{"return": {}}


{"execute":"query-version"}
{"return": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2-2.430.el6)"}}

Based on above, the issue is fixed.

Comment 7 errata-xmlrpc 2014-10-14 06:56:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1490.html