[libvirt-users] Calling 'virsh' from within a hook script - avoid deadlock?
Daniel P. Berrange
berrange at redhat.com
Thu Nov 7 04:07:17 UTC 2013
On Wed, Nov 06, 2013 at 03:59:28PM +0000, TSADOK, Shlomi (Shlomi) wrote:
> Yes.. I saw that, but I have to :)
>
> The issue was solved by converting the hook to Python and using
> 'subprocess.Popen'. deadlock is gone, all looks good.
If that works it is pretty much by luck and not by design. We
make *zero* guarantees that you can call libvirt from a hook
function. Don't be surprised if your code breaks in the future
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvirt-users
mailing list