<div dir="ltr">Yes, you are right, but we found our instance hang at first dom.shutdown() call, if the dom.shutdown() don't return, there is no chance to execute dom.destroy(), right?</div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-26 23:20 GMT+08:00 Chris Friesen <span dir="ltr"><<a href="mailto:chris.friesen@windriver.com" target="_blank">chris.friesen@windriver.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 03/25/2015 10:15 PM, Rui Chen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all:<br>
<br>
I found a discuss about the libvirt shutdown API maybe hang when shutdown<br>
instance in libvirt community,<br>
<a href="https://www.redhat.com/archives/libvir-list/2015-March/msg01121.html" target="_blank">https://www.redhat.com/<u></u>archives/libvir-list/2015-<u></u>March/msg01121.html</a><br>
<br>
I'm not sure that whether there are some risks when we shutdown instance in<br>
nova.<br>
<br>
Three questions:<br>
1. Whether acpi is the default shutdown mode in QEMU/KVM hypervisor when we<br>
shutdown instance using libvirt?<br>
2. Whether acpi is asynchronous mode, and qemu-agent is synchronous mode<br>
when we shutdown instance?<br>
3. If the hypervisor use qemu-agent as default shutdown mode, how we can<br>
deal the hanging issue?<br>
</blockquote>
<br>
<br></div></div>
When shutting down an instance if there is a timeout (controlled by config file or system metadata) the code will first attempt a clean shutdown via dom.shutdown(). If that doesn't terminate the instance by the time the timeout expires, then we'll call virt_dom.destroy().<br>
<br>
Chris<br>
<br>
______________________________<u></u>______________________________<u></u>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.<u></u>openstack.org?subject:<u></u>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div><br></div>