Bug 853673
Summary: | virsh qemu-agent-command returns 0 and without any error message on parsing json char lexical error | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Alex Jia <ajia> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | crobinso, dyuan, jdenemar, mzhan, rbalakri, smitterl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-24 00:45:49 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: |
Description
Alex Jia
2012-09-02 03:26:21 UTC
BTW, I haven't do any guest agent configuration in guest XML. *** Bug 853705 has been marked as a duplicate of this bug. *** qemuDomainAgentCommand correctly reports the error but it seems it is not properly propagated to the end user. Anyway, qemu-agent-command (all qemu-* commands to be precise) is not supported, I'm moving this bug upstream. (In reply to comment #4) > qemuDomainAgentCommand correctly reports the error but it seems it is not > properly propagated to the end user. Anyway, qemu-agent-command (all qemu-* > commands to be precise) is not supported, I'm moving this bug upstream. Jiri, in fact, the 'qemu-agent-command' does work for me if I passed correct commands to it and correctly configure qemu-guest-agent in the guest, for example: # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-ping"}' {"return":{}} # virsh qemu-agent-command myRHEL6 --cmd '{ "execute": "guest-sync", "arguments": { "id": 123456 } }' {"return":123456} # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-fsfreeze-status"}' {"return":"thawed"} # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-fsfreeze-freeze"}' {"return":2} # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-fsfreeze-status"}' {"return":"frozen"} # virsh snapshot-create-as --quiesce myRHEL6 --disk-only Domain snapshot 1346642071 created # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-fsfreeze-status"}' {"return":"thawed"} # virsh qemu-agent-command myRHEL6 --cmd '{"execute":"guest-network-get-interfaces"}' {"return":[{"name":"lo","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":8},{"ip-address-type":"ipv6","ip-address":"::1","prefix":128}],"hardware-address":"00:00:00:00:00:00"},{"name":"eth7","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.122.156","prefix":24},{"ip-address-type":"ipv6","ip-address":"fe80::5054:ff:feda:4aeb","prefix":64}],"hardware-address":"52:54:00:da:4a:eb"}]} (In reply to Jiri Denemark from comment #4) > qemuDomainAgentCommand correctly reports the error but it seems it is not > properly propagated to the end user. Anyway, qemu-agent-command (all qemu-* > commands to be precise) is not supported, I'm moving this bug upstream. The qemu-monitor-command has the same issue of the return value on libvirt-0.10.2-29.el6.x86_64. Seems fixed upstream: $ sudo virsh qemu-monitor-command f23 hello error: internal error: cannot parse json hello: lexical error: invalid char in json text. hello (right here) ------^ |