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