Re: [libvirt] Exclusive VM lock

2015-12-15 Thread Martin Kletzander
On Mon, Dec 14, 2015 at 06:50:56PM +0300, Dmitry Andreev wrote: On 14.12.2015 18:10, Peter Krempa wrote: On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote: Hi, I'm looking for a mechanism to do a sequence of API calls as atomic operation. Is there any way for libvirt's API client

Re: [libvirt] Exclusive VM lock

2015-12-15 Thread Dmitry Andreev
On 15.12.2015 11:47, Martin Kletzander wrote: On Mon, Dec 14, 2015 at 06:50:56PM +0300, Dmitry Andreev wrote: On 14.12.2015 18:10, Peter Krempa wrote: On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote: Hi, I'm looking for a mechanism to do a sequence of API calls as atomic

Re: [libvirt] Exclusive VM lock

2015-12-15 Thread Martin Kletzander
On Tue, Dec 15, 2015 at 03:26:44PM +0300, Dmitry Andreev wrote: On 15.12.2015 11:47, Martin Kletzander wrote: On Mon, Dec 14, 2015 at 06:50:56PM +0300, Dmitry Andreev wrote: On 14.12.2015 18:10, Peter Krempa wrote: On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote: Hi, I'm

Re: [libvirt] Exclusive VM lock

2015-12-14 Thread Peter Krempa
On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote: > Hi, > > I'm looking for a mechanism to do a sequence of API calls as atomic > operation. Is there any way for libvirt's API client to acquire an > exclusive VM lock to prevent other client from changing VM state > through libvirt?

Re: [libvirt] Exclusive VM lock

2015-12-14 Thread Dmitry Andreev
On 14.12.2015 18:10, Peter Krempa wrote: On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote: Hi, I'm looking for a mechanism to do a sequence of API calls as atomic operation. Is there any way for libvirt's API client to acquire an exclusive VM lock to prevent other client from

[libvirt] Exclusive VM lock

2015-12-14 Thread Dmitry Andreev
Hi, I'm looking for a mechanism to do a sequence of API calls as atomic operation. Is there any way for libvirt's API client to acquire an exclusive VM lock to prevent other client from changing VM state through libvirt? -- libvir-list mailing list libvir-list@redhat.com