Michal Prívozník
2022-Oct-26 07:21 UTC
domain_qemu_agent_command($domain,$cmd,$timeout,$flags)
On 10/25/22 20:04, Simon Fairweather wrote:> Should there be a way to suppress errors using the flags? > > ?error : qemuDomainAgentAvailable:8411 : Guest agent is not responding: > QEMU guest agent is not connected > > > Or is there a libvirt function to check connection status or another way?This error message is "harmless" in a sense that there is no split brain of states between libvirt and QEMU. But yeah, your API is going to fail. You can check for the agent status in the domain XML, for instance with the following (rewrite in your favorite language): virsh dumpxml fedora | xpath -e "string(//channel/target[@name='org.qemu.guest_agent.0']/@state)" Michal
Simon Fairweather
2022-Oct-27 06:15 UTC
domain_qemu_agent_command($domain,$cmd,$timeout,$flags)
Thanks Michal, php version I used. $xml = new SimpleXMLElement($lv->domain_get_xml($res)) ; $data $xml->xpath('//channel/target[@name="org.qemu.guest_agent.0"]/@state') ; On Wed, Oct 26, 2022 at 8:21 AM Michal Pr?vozn?k <mprivozn at redhat.com> wrote:> On 10/25/22 20:04, Simon Fairweather wrote: > > Should there be a way to suppress errors using the flags? > > > > error : qemuDomainAgentAvailable:8411 : Guest agent is not responding: > > QEMU guest agent is not connected > > > > > > Or is there a libvirt function to check connection status or another way? > > This error message is "harmless" in a sense that there is no split brain > of states between libvirt and QEMU. But yeah, your API is going to fail. > > You can check for the agent status in the domain XML, for instance with > the following (rewrite in your favorite language): > > virsh dumpxml fedora | xpath -e > "string(//channel/target[@name='org.qemu.guest_agent.0']/@state)" > > Michal > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20221027/57c86d09/attachment.htm>
Simon Fairweather
2022-Nov-15 13:44 UTC
domain_qemu_agent_command($domain,$cmd,$timeout,$flags)
Hi Michal, Can you advise why the following warning is logged for this command: domain_qemu_agent_command($res, '{"execute":"guest-network-get-interfaces"}', 10, 0) ; warning : qemuDomainObjTaintMsg:6464 : Domain id=1 name='HA' uuid=ffbc955e-9a51-f1d1-2501-b4cbdac5dd4c is tainted: custom-ga-command Regards On Wed, Oct 26, 2022 at 8:21 AM Michal Pr?vozn?k <mprivozn at redhat.com> wrote:> On 10/25/22 20:04, Simon Fairweather wrote: > > Should there be a way to suppress errors using the flags? > > > > error : qemuDomainAgentAvailable:8411 : Guest agent is not responding: > > QEMU guest agent is not connected > > > > > > Or is there a libvirt function to check connection status or another way? > > This error message is "harmless" in a sense that there is no split brain > of states between libvirt and QEMU. But yeah, your API is going to fail. > > You can check for the agent status in the domain XML, for instance with > the following (rewrite in your favorite language): > > virsh dumpxml fedora | xpath -e > "string(//channel/target[@name='org.qemu.guest_agent.0']/@state)" > > Michal > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20221115/e215a2f8/attachment.htm>