Displaying 5 results from an estimated 5 matches for "tsadok".
2013 Nov 07
2
Re: Calling 'virsh' from within a hook script - avoid deadlock?
On 06.11.2013 16:17, Michal Privoznik wrote:
> On 06.11.2013 11:23, TSADOK, Shlomi (Shlomi) wrote:
>> [...]
>
> http://libvirt.org/hooks.html#recursive
>
> Do not do this.
>
> Michal
>
Maybe I should explain a bit why this is not supported. It's true that
libvirt is multithreaded. However, not in terms of multiple write/modify
accesses...
2013 Nov 06
3
Calling 'virsh' from within a hook script - avoid deadlock?
I'm trying to create a hook that attaches several virtio-scsi disks to a starting vm,
and it seems like the hook enters a deadlock while attempting to do so.
Is there any workaround around this? Any better way, forking virsh execution somehow?
Could anyone explain why this is creating a deadlock in the first place? Isn't libvirt multithreaded?
Thanks for the help!
Shlomi
### hook
2013 Nov 06
1
Re: Calling 'virsh' from within a hook script - avoid deadlock?
...aw 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.
Regards
Shlomi
-----Original Message-----
From: Michal Privoznik [mailto:mprivozn@redhat.com]
Sent: Wednesday, November 06, 2013 5:17 PM
To: TSADOK, Shlomi (Shlomi)
Cc: libvirt-users@redhat.com
Subject: Re: [libvirt-users] Calling 'virsh' from within a hook script - avoid deadlock?
On 06.11.2013 11:23, TSADOK, Shlomi (Shlomi) wrote:
> I'm trying to create a hook that attaches several virtio-scsi disks to
> a starting vm,
&g...
2013 Nov 06
0
Re: Calling 'virsh' from within a hook script - avoid deadlock?
On 06.11.2013 11:23, TSADOK, Shlomi (Shlomi) wrote:
> I'm trying to create a hook that attaches several virtio-scsi disks to a
> starting vm,
>
> and it seems like the hook enters a deadlock while attempting to do so.
>
>
>
> Is there any workaround around this? Any better way, forking virsh
&...
2013 Nov 07
0
Re: Calling 'virsh' from within a hook script - avoid deadlock?
On Thu, Nov 07, 2013 at 10:16:29AM +0100, Michal Privoznik wrote:
> On 06.11.2013 16:17, Michal Privoznik wrote:
> > On 06.11.2013 11:23, TSADOK, Shlomi (Shlomi) wrote:
> >> [...]
> >
> > http://libvirt.org/hooks.html#recursive
> >
> > Do not do this.
> >
> > Michal
> >
>
> Maybe I should explain a bit why this is not supported. It's true that
> libvirt is multithreaded. H...