search for: virstreamfinish

Displaying 19 results from an estimated 19 matches for "virstreamfinish".

2017 May 17
2
Re: No way to stop virStream error after guest stop
...with the correct usage it goes away. So my guess is there is a stray call in your program somewhere or I didn't reproduce exactly what you meant. After receiving the _READABLE event and doing virStreamRecv() that returns 0 bytes read, did you try immediatelly removing the callback and calling virStreamFinish() on the stream? What you see happening is something that is possible by not removing the callback and then aborting the stream, for example. >>Jose V. >>Em ter, 16 de mai de 2017 às 05:28, Martin Kletzander <mkletzan@redhat.com> >>escreveu: >> >>> On Fri, A...
2017 Apr 28
2
No way to stop virStream error after guest stop
...n-blocking virStream using events, when the connected domain gets stopped(which deletes the channel unix socket) by calling destroy, shutdown, pause or migrate on that domain, with the stream open the read event is triggered repeatedly, and virStreamRecv returns 0 bytes indicating EOF but neither virStreamFinish nor virStreamFinish is working to stop the stream to trigger the event . Each time the event is called I got this errors. libvirt: I/O Stream Utils error : this function is not supported by the connection driver: virStreamRecv libvirt: I/O Stream Utils error : this function is not supported by th...
2017 May 17
2
Re: No way to stop virStream error after guest stop
...he connected domain gets > >stopped(which deletes the channel unix socket) by calling destroy, > >shutdown, pause or migrate on that domain, with the stream open the read > >event is triggered repeatedly, and virStreamRecv returns 0 bytes > indicating > > EOF but neither virStreamFinish nor virStreamFinish is working to stop > >the stream to trigger the event . Each time the event is called I got this > >errors. > > > >libvirt: I/O Stream Utils error : this function is not supported by > >the connection driver: virStreamRecv > > > >libvirt...
2017 May 24
2
Re: No way to stop virStream error after guest stop
On Wed, May 17, 2017 at 07:53:35PM +0000, JosÉ Luis Valencia Gutierrez wrote: >I just tried removing the callback before calling virStreamFinish and it >worked right, I thought by simply finish the stream would stop the events >and close it, the example I was based on only calls virStreamFinish on EOF >event. > I'm working on a patch that removes the callbacks after calling Finish. Our docs don't really say it's nee...
2016 Apr 25
2
Re: stream finish throws exception via python API
...me(vol, item[1], diskno, disksitems, pksize) >> File "./helpers/kvm2ovirt", line 102, in download_volume >> stream.finish() >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish >> if ret == -1: raise libvirtError ('virStreamFinish() failed') >> libvirt.libvirtError: internal error: I/O helper exited abnormally >> The error message sucks, I'll send patches to improve it a little at least. What's happening here is that the you haven't read all the data you requested (it's vol.download(path,...
2017 May 17
0
Re: No way to stop virStream error after guest stop
I just tried removing the callback before calling virStreamFinish and it worked right, I thought by simply finish the stream would stop the events and close it, the example I was based on only calls virStreamFinish on EOF event. Em qua, 17 de mai de 2017 às 12:49, Martin Kletzander <mkletzan@redhat.com> escreveu: > On Wed, May 17, 2017 at 09:08:14AM +...
2016 Apr 26
2
Re: stream finish throws exception via python API
...ize) > > >> File "./helpers/kvm2ovirt", line 102, in download_volume > > >> stream.finish() > > >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish > > >> if ret == -1: raise libvirtError ('virStreamFinish() failed') > > >> libvirt.libvirtError: internal error: I/O helper exited abnormally > > >> > > > > The error message sucks, I'll send patches to improve it a little at least. > > > > What's happening here is that the you haven't r...
2016 Apr 17
2
stream finish throws exception via python API
...in <module> download_volume(vol, item[1], diskno, disksitems, pksize) File "./helpers/kvm2ovirt", line 102, in download_volume stream.finish() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish if ret == -1: raise libvirtError ('virStreamFinish() failed') libvirt.libvirtError: internal error: I/O helper exited abnormally Am I doing something wrong? Thank you, Shahar.
2016 Apr 26
2
Re: stream finish throws exception via python API
...;> File "./helpers/kvm2ovirt", line 102, in download_volume >>>>>> stream.finish() >>>>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish >>>>>> if ret == -1: raise libvirtError ('virStreamFinish() failed') >>>>>> libvirt.libvirtError: internal error: I/O helper exited abnormally >>>>>> >>>> >>>> The error message sucks, I'll send patches to improve it a little at least. >>>> >>>> What's happen...
2016 Apr 26
0
Re: stream finish throws exception via python API
...kno, disksitems, pksize) > >> File "./helpers/kvm2ovirt", line 102, in download_volume > >> stream.finish() > >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish > >> if ret == -1: raise libvirtError ('virStreamFinish() failed') > >> libvirt.libvirtError: internal error: I/O helper exited abnormally > >> > > The error message sucks, I'll send patches to improve it a little at least. > > What's happening here is that the you haven't read all the data you requested...
2017 May 16
0
Re: No way to stop virStream error after guest stop
...ream using events, when the connected domain gets >stopped(which deletes the channel unix socket) by calling destroy, >shutdown, pause or migrate on that domain, with the stream open the read >event is triggered repeatedly, and virStreamRecv returns 0 bytes indicating > EOF but neither virStreamFinish nor virStreamFinish is working to stop >the stream to trigger the event . Each time the event is called I got this >errors. > >libvirt: I/O Stream Utils error : this function is not supported by >the connection driver: virStreamRecv > >libvirt: I/O Stream Utils error : this fun...
2017 May 17
0
Re: No way to stop virStream error after guest stop
...gets >> >stopped(which deletes the channel unix socket) by calling destroy, >> >shutdown, pause or migrate on that domain, with the stream open the read >> >event is triggered repeatedly, and virStreamRecv returns 0 bytes >> indicating >> > EOF but neither virStreamFinish nor virStreamFinish is working to stop >> >the stream to trigger the event . Each time the event is called I got this >> >errors. >> > >> >libvirt: I/O Stream Utils error : this function is not supported by >> >the connection driver: virStreamRecv >&g...
2016 Apr 26
0
Re: stream finish throws exception via python API
...>> File "./helpers/kvm2ovirt", line 102, in download_volume > > > >> stream.finish() > > > >> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish > > > >> if ret == -1: raise libvirtError ('virStreamFinish() failed') > > > >> libvirt.libvirtError: internal error: I/O helper exited abnormally > > > >> > > > > > > The error message sucks, I'll send patches to improve it a little at least. > > > > > > What's happening here...
2016 Apr 26
2
Re: stream finish throws exception via python API
...pers/kvm2ovirt", line 102, in download_volume >>>>>>>> stream.finish() >>>>>>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish >>>>>>>> if ret == -1: raise libvirtError ('virStreamFinish() failed') >>>>>>>> libvirt.libvirtError: internal error: I/O helper exited abnormally >>>>>>>> >>>>>> >>>>>> The error message sucks, I'll send patches to improve it a little at least. >>>>>&...
2017 May 24
0
Re: No way to stop virStream error after guest stop
That is great, calling Abort also should remove the callbacks. On Wed, 24 May 2017 11:11 Martin Kletzander, <mkletzan@redhat.com> wrote: > On Wed, May 17, 2017 at 07:53:35PM +0000, JosÉ Luis Valencia Gutierrez > wrote: > >I just tried removing the callback before calling virStreamFinish and it > >worked right, I thought by simply finish the stream would stop the events > >and close it, the example I was based on only calls virStreamFinish on EOF > >event. > > > > I'm working on a patch that removes the callbacks after calling Finish. > Our docs...
2016 Apr 27
0
Re: stream finish throws exception via python API
...quot;, line 102, in download_volume > >>>>>>>> stream.finish() > >>>>>>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish > >>>>>>>> if ret == -1: raise libvirtError ('virStreamFinish() failed') > >>>>>>>> libvirt.libvirtError: internal error: I/O helper exited abnormally > >>>>>>>> > >>>>>> > >>>>>> The error message sucks, I'll send patches to improve it a little at least. &...
2016 Apr 26
0
Re: stream finish throws exception via python API
..."./helpers/kvm2ovirt", line 102, in download_volume >>>>>>> stream.finish() >>>>>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish >>>>>>> if ret == -1: raise libvirtError ('virStreamFinish() failed') >>>>>>> libvirt.libvirtError: internal error: I/O helper exited abnormally >>>>>>> >>>>> >>>>> The error message sucks, I'll send patches to improve it a little at least. >>>>> >>>>...
2013 Sep 18
2
Trouble using virStream with callbacks
...s); if (virEventAddHandle(fileno(stdin), 1|4|8, stdin_to_stream, &st, NULL) < 0) errx(1, "virEventAddHandle"); while (stream_active) { if (virEventRunDefaultImpl() != 0) { errx(1, "virEventRunDefaultImpl"); break; } } if (virStreamFinish(st) < 0) errx(1, "virStreamFinish"); if (virStreamFree(st) < 0) errx(1, "virStreamFree"); return 0; }
2016 Apr 25
0
Re: stream finish throws exception via python API
...download_volume(vol, item[1], diskno, disksitems, pksize) > File "./helpers/kvm2ovirt", line 102, in download_volume > stream.finish() > File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish > if ret == -1: raise libvirtError ('virStreamFinish() failed') > libvirt.libvirtError: internal error: I/O helper exited abnormally > Ping... > > Am I doing something wrong? > > Thank you, > Shahar.