Thank you for reply, Chris. 2015-03-27 23:15 GMT+08:00 Chris Friesen <chris.friesen at windriver.com>: > On 03/26/2015 07:44 PM, Rui Chen wrote: > >> 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? >> > > Correct. The code is written assuming dom.shutdown() cannot block > indefinitely. > > The libvirt docs at "https://libvirt.org/html/libvirt-libvirt-domain.html# > virDomainShutdown" say "...this command returns as soon as the shutdown > request is issued rather than blocking until the guest is no longer > running." > > If dom.shutdown() blocks indefinitely, then that's a libvirt bug. > > > Chris > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150328/4479b44a/attachment.html>