Re: Calling 'virsh' from within a hook script - avoid deadlock?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux