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 1075292 - [virtio-win][qemu-ga-win] qemu guest agent should report correctly error description (windows guest)
Summary: [virtio-win][qemu-ga-win] qemu guest agent should report correctly error desc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Yvugenfi@redhat.com
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1074469
Blocks: 1073208 1401400
TreeView+ depends on / blocked
 
Reported: 2014-03-12 02:58 UTC by Sibiao Luo
Modified: 2017-08-01 12:53 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1074469
Environment:
Last Closed: 2017-08-01 12:53:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2341 0 normal SHIPPED_LIVE virtio-win bug fix and enhancement update 2017-08-01 16:52:38 UTC

Comment 1 Sibiao Luo 2014-03-12 03:01:25 UTC
host info:
# uname -r && rpm -q qemu-kvm-rhev
3.10.0-100.el7.x86_64
qemu-kvm-rhev-1.5.3-50.el7.x86_64
guest info:
win7 64bit
qemu-ga-win-7.0-7
virtio-win-prewhql-0.1-74 

Result:
# nc -U /tmp/qga.sock
{"execute": "guest-ping"}
{"return": {}}
{ "execute": "system_reboot"}
{"error": {"desc": "The command system_reboot has not been found"}}

{"execute":"guest-suspend-"}
{"error": {"desc": "The command guest-suspend- has not been found"}}

{"execute":"guest-suspend-hybrid"}
{"error": {"desc": "this feature or command is not currently supported"}}

{"execute":"guest-s"}
{"error": {"desc": "The command guest-s has not been found"}}

Comment 2 Sibiao Luo 2014-11-17 08:46:30 UTC
Expected results:
# nc -U /tmp/qga.sock
{"execute":"guest-suspend-"}
{"error": {****"class"****: "CommandNotFound", "desc": "The command guest-suspend- has not been found", ****"data"****: {"name": "guest-suspend-"}}}
{"execute":"guest-suspend-hybrid"}
{"error": {****"class"****: "Unsupported", "desc": "this feature or command is not currently supported", ****"data"****: {}}}
{"execute":"guest-s"}
{"error": {****"class"****: "CommandNotFound", "desc": "The command guest-s has not been found", ****"data"****: {"name": "guest-s"}}}

Comment 6 Yu Wang 2017-04-25 10:18:42 UTC
Hi Yan,

Re-tested with qemu-ga-win-7.4.5-1 / qemu-kvm-rhev-2.9.0-1

1 { "execute": "system_reboot"}
{"error": {"class": "CommandNotFound", "desc": "The command system_reboot has not been found"}}

2 {"execute":"guest-suspend-"}
{"error": {"class": "CommandNotFound", "desc": "The command guest-suspend- has not been found"}}

3 {"execute":"guest-suspend-hybrid"}
{"error": {"class": "CommandDisabled", "desc": "The command guest-suspend-hybrid has been disabled for this instance"}}

4 {"execute":"guest-s"}
{"error": {"class": "CommandNotFound", "desc": "The command guest-s has not been found"}}

compare with expected results in comment#2
# nc -U /tmp/qga.sock
{"execute":"guest-suspend-"}
{"error": {"class": "CommandNotFound", "desc": "The command guest-suspend- has not been found", "data": {"name": "guest-suspend-"}}}
{"execute":"guest-suspend-hybrid"}
{"error": {"class": "Unsupported", "desc": "this feature or command is not currently supported", "data": {}}}
{"execute":"guest-s"}
{"error": {"class": "CommandNotFound", "desc": "The command guest-s has not been found", "data": {"name": "guest-s"}}}


1 About the 1st,2nd,4th, there is no ""data": {"name": "guest-s"}}}" for these commands.
2 About 3rd command , the result is not {"execute":"guest-suspend-hybrid"}
{"error": {"class": "Unsupported", "desc": "this feature or command is not currently supported", "data": {}}} , but similar with it, and also no ""data": {}}}"

Is that by design for the 1 and 2 concerns ? or it is still a issue?

Thanks
Yu Wang

Comment 7 Yvugenfi@redhat.com 2017-05-04 10:49:11 UTC
(In reply to Yu Wang from comment #6)
> Hi Yan,
> 
> Re-tested with qemu-ga-win-7.4.5-1 / qemu-kvm-rhev-2.9.0-1
> 
> 1 { "execute": "system_reboot"}
> {"error": {"class": "CommandNotFound", "desc": "The command system_reboot
> has not been found"}}
> 
> 2 {"execute":"guest-suspend-"}
> {"error": {"class": "CommandNotFound", "desc": "The command guest-suspend-
> has not been found"}}
> 
> 3 {"execute":"guest-suspend-hybrid"}
> {"error": {"class": "CommandDisabled", "desc": "The command
> guest-suspend-hybrid has been disabled for this instance"}}
> 
> 4 {"execute":"guest-s"}
> {"error": {"class": "CommandNotFound", "desc": "The command guest-s has not
> been found"}}
> 
> compare with expected results in comment#2
> # nc -U /tmp/qga.sock
> {"execute":"guest-suspend-"}
> {"error": {"class": "CommandNotFound", "desc": "The command guest-suspend-
> has not been found", "data": {"name": "guest-suspend-"}}}
> {"execute":"guest-suspend-hybrid"}
> {"error": {"class": "Unsupported", "desc": "this feature or command is not
> currently supported", "data": {}}}
> {"execute":"guest-s"}
> {"error": {"class": "CommandNotFound", "desc": "The command guest-s has not
> been found", "data": {"name": "guest-s"}}}
> 
> 
> 1 About the 1st,2nd,4th, there is no ""data": {"name": "guest-s"}}}" for
> these commands.
> 2 About 3rd command , the result is not {"execute":"guest-suspend-hybrid"}
> {"error": {"class": "Unsupported", "desc": "this feature or command is not
> currently supported", "data": {}}} , but similar with it, and also no
> ""data": {}}}"
> 
> Is that by design for the 1 and 2 concerns ? or it is still a issue?
> 
> Thanks
> Yu Wang
The disabled message appears because of the earlier patch which marks this command as unsupported.

For data field the difference is because of the differences between the downstream and upstream repos in the qapi and error handling.

Comment 8 Yu Wang 2017-05-08 05:54:47 UTC
Thanks Yan,s reply,

So this bug has been fixed according to comment#6 and comment#7.
Change status to verified.


Thank
Yu Wang

Comment 11 errata-xmlrpc 2017-08-01 12:53:08 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.

https://access.redhat.com/errata/RHBA-2017:2341


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