Re: [libvirt-users] stream finish throws exception via python API

2016-11-27 Thread Tomáš Golembiovský
Hi, sorry to dig up the old thread, but I've recently discovered that it is possible to get the physical size via virDomainGetBlockInfo(). I am bringing this up because the call works also on files and not only on block devices (as the name does suggest). So, is there any reason why not to use th

Re: [libvirt-users] stream finish throws exception via python API

2016-04-27 Thread Nir Soffer
בתאריך 27 באפר׳ 2016 5:37 אחה״צ,‏ "Cole Robinson" כתב: > > On 04/27/2016 04:26 AM, Daniel P. Berrange wrote: > > On Tue, Apr 26, 2016 at 03:17:19PM -0400, Cole Robinson wrote: > >> On 04/26/2016 02:56 PM, Nir Soffer wrote: > >>> On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: > On 04/2

Re: [libvirt-users] stream finish throws exception via python API

2016-04-27 Thread Cole Robinson
On 04/27/2016 04:26 AM, Daniel P. Berrange wrote: > On Tue, Apr 26, 2016 at 03:17:19PM -0400, Cole Robinson wrote: >> On 04/26/2016 02:56 PM, Nir Soffer wrote: >>> On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: On 04/26/2016 09:35 AM, Shahar Havivi wrote: > On 26.04.16 15:30, Shaha

Re: [libvirt-users] stream finish throws exception via python API

2016-04-27 Thread Daniel P. Berrange
On Tue, Apr 26, 2016 at 03:17:19PM -0400, Cole Robinson wrote: > On 04/26/2016 02:56 PM, Nir Soffer wrote: > > On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: > >> On 04/26/2016 09:35 AM, Shahar Havivi wrote: > >>> On 26.04.16 15:30, Shahar Havivi wrote: > On 26.04.16 14:14, Shahar Havi

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Cole Robinson
On 04/26/2016 02:56 PM, Nir Soffer wrote: > On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: >> On 04/26/2016 09:35 AM, Shahar Havivi wrote: >>> On 26.04.16 15:30, Shahar Havivi wrote: On 26.04.16 14:14, Shahar Havivi wrote: > On 25.04.16 09:11, Cole Robinson wrote: >> On 04/25/2

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Nir Soffer
On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: > On 04/26/2016 09:35 AM, Shahar Havivi wrote: >> On 26.04.16 15:30, Shahar Havivi wrote: >>> On 26.04.16 14:14, Shahar Havivi wrote: On 25.04.16 09:11, Cole Robinson wrote: > On 04/25/2016 08:10 AM, Shahar Havivi wrote: >> On 17.0

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Cole Robinson
On 04/26/2016 09:35 AM, Shahar Havivi wrote: > On 26.04.16 15:30, Shahar Havivi wrote: >> On 26.04.16 14:14, Shahar Havivi wrote: >>> On 25.04.16 09:11, Cole Robinson wrote: On 04/25/2016 08:10 AM, Shahar Havivi wrote: > On 17.04.16 15:41, Shahar Havivi wrote: >> Hi, >> The followi

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Shahar Havivi
On 26.04.16 15:30, Shahar Havivi wrote: > On 26.04.16 14:14, Shahar Havivi wrote: > > On 25.04.16 09:11, Cole Robinson wrote: > > > On 04/25/2016 08:10 AM, Shahar Havivi wrote: > > > > On 17.04.16 15:41, Shahar Havivi wrote: > > > >> Hi, > > > >> The following snippet works fine e.g. receiving the

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Shahar Havivi
On 26.04.16 14:14, Shahar Havivi wrote: > On 25.04.16 09:11, Cole Robinson wrote: > > On 04/25/2016 08:10 AM, Shahar Havivi wrote: > > > On 17.04.16 15:41, Shahar Havivi wrote: > > >> Hi, > > >> The following snippet works fine e.g. receiving the data but when calling > > >> stream.finish() we get

Re: [libvirt-users] stream finish throws exception via python API

2016-04-26 Thread Shahar Havivi
On 25.04.16 09:11, Cole Robinson wrote: > On 04/25/2016 08:10 AM, Shahar Havivi wrote: > > On 17.04.16 15:41, Shahar Havivi wrote: > >> Hi, > >> The following snippet works fine e.g. receiving the data but when calling > >> stream.finish() we get the following error: > >> > >> stream = con.newStrea

Re: [libvirt-users] stream finish throws exception via python API

2016-04-25 Thread Cole Robinson
On 04/25/2016 08:10 AM, Shahar Havivi wrote: > On 17.04.16 15:41, Shahar Havivi wrote: >> Hi, >> The following snippet works fine e.g. receiving the data but when calling >> stream.finish() we get the following error: >> >> stream = con.newStream() >> vol.download(stream, 0, 0, 0) >> buf = stream.r

Re: [libvirt-users] stream finish throws exception via python API

2016-04-25 Thread Shahar Havivi
On 17.04.16 15:41, Shahar Havivi wrote: > Hi, > The following snippet works fine e.g. receiving the data but when calling > stream.finish() we get the following error: > > stream = con.newStream() > vol.download(stream, 0, 0, 0) > buf = stream.recv(1024) > stream.finish() > > libvirt: I/O Stream

[libvirt-users] stream finish throws exception via python API

2016-04-17 Thread Shahar Havivi
Hi, The following snippet works fine e.g. receiving the data but when calling stream.finish() we get the following error: stream = con.newStream() vol.download(stream, 0, 0, 0) buf = stream.recv(1024) stream.finish() libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally T