[libvirt] lifecycle: shutdown: should it have timeout when using qemu-agent?
Michal Privoznik
mprivozn at redhat.com
Mon Mar 23 11:06:19 UTC 2015
On 23.03.2015 10:31, zhang bo wrote:
> The problem we encountered is:
> 1) use qemu-agent to shutdown a domain.
> 2) libvirt will block in "qemuAgentShutdown()", if the domain itself got stucked when it powers-off.
>
> It's the *guest domain*'s fault that it stucks when shutdown. However, we could not handle the domain in libvirt anymore, except for the jobs such as DESTROY or QUERY.
>
> So, here comes the question:
> What's the normal solution to this problem? shall we:
> 1) use DESTROY to forcelly poweroff the domain, in openstack or other applications that uses libvirt.
Yes, this is preferred way. Even for other APIs that talk either to a
monitor or a guest agent.
Michal
More information about the libvir-list
mailing list