search for: ovirt_imageio

Displaying 7 results from an estimated 7 matches for "ovirt_imageio".

2020 Jul 09
2
Re: [PATCH] RFC: rhv-upload-plugin: Use imageio client
...chitectures thinking about the Fedora case, but > if we're not going to package this up in Fedora it doesn't matter. We never tried to build on other arches, but it should work. We have few lines of C but they should be portable. https://github.com/oVirt/ovirt-imageio/blob/master/daemon/ovirt_imageio/_internal/ioutil.c I added aarch64 builds in copr, lets see how it goes: https://copr.fedorainfracloud.org/coprs/nsoffer/ovirt-imageio-preview/build/1541540/ > > > > - params['rhv_direct'] is ignored, we always try direct transfer now. > > > > > > We should d...
2020 Jul 09
2
Re: [PATCH] RFC: rhv-upload-plugin: Use imageio client
...> > -# Ported to Python 3 by Irit Goihman. > > - > > - > > -class UnixHTTPConnection(HTTPConnection): > > Why drop this part? Not used now, imageio client includes this class: https://github.com/oVirt/ovirt-imageio/blob/24c59f2e0ace784d9c993f6044475bb370058e70/daemon/ovirt_imageio/_internal/backends/http.py#L610 > > Rest of the patch looks good and as you say above both simplifies and > improves performance. The performance part was not tested yet. I will results in the next version. Nir
2020 Jul 09
0
Re: [PATCH] RFC: rhv-upload-plugin: Use imageio client
...ut the Fedora case, but > > if we're not going to package this up in Fedora it doesn't matter. > > We never tried to build on other arches, but it should work. We have > few lines of C but they should be portable. > https://github.com/oVirt/ovirt-imageio/blob/master/daemon/ovirt_imageio/_internal/ioutil.c > > I added aarch64 builds in copr, lets see how it goes: > https://copr.fedorainfracloud.org/coprs/nsoffer/ovirt-imageio-preview/build/1541540/ > > > > > > - params['rhv_direct'] is ignored, we always try direct transfer now. > > > &gt...
2020 Jul 09
0
Re: [PATCH] RFC: rhv-upload-plugin: Use imageio client
...Goihman. > > > - > > > - > > > -class UnixHTTPConnection(HTTPConnection): > > > > Why drop this part? > > Not used now, imageio client includes this class: > https://github.com/oVirt/ovirt-imageio/blob/24c59f2e0ace784d9c993f6044475bb370058e70/daemon/ovirt_imageio/_internal/backends/http.py#L610 Good thing. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows ins...
2020 Aug 06
0
Re: [PATCH nbdkit] plugins: python: Add imageio plugin example
...g extents from python plugin? > +# > +# The -f -v arguments are optional. They cause the server to stay in > +# the foreground and print debugging, which is useful when testing. > + > +import queue > +import threading > +from contextlib import contextmanager > + > +from ovirt_imageio.client import ImageioClient > + > +import nbdkit > + > +# Using version 2 supporting the buffer protocol for better performance. > +API_VERSION = 2 > + > +# Plugin configuration, can be set using key=value in the command line. > +params = { > + "secure": True...
2020 Aug 06
4
[PATCH nbdkit] plugins: python: Add imageio plugin example
...not efficient with this version, since we don't report +# extents yet. +# +# The -f -v arguments are optional. They cause the server to stay in +# the foreground and print debugging, which is useful when testing. + +import queue +import threading +from contextlib import contextmanager + +from ovirt_imageio.client import ImageioClient + +import nbdkit + +# Using version 2 supporting the buffer protocol for better performance. +API_VERSION = 2 + +# Plugin configuration, can be set using key=value in the command line. +params = { + "secure": True, + "ca_file": "", +...
2020 Jul 08
2
[PATCH] RFC: rhv-upload-plugin: Use imageio client
...----------------------- 1 file changed, 61 insertions(+), 298 deletions(-) diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index 8c11012b..172da602 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -26,12 +26,17 @@ import ssl import sys import time +from ovirt_imageio.client import ImageioClient + from http.client import HTTPSConnection, HTTPConnection from urllib.parse import urlparse import ovirtsdk4 as sdk import ovirtsdk4.types as types +# Version 2 supports the buffer protocol, improving performance. +API_VERSION = 2 + # Timeout to wait for oVirt d...