search for: ovirt_imageio_common

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

2018 Aug 02
2
nbdkit does not support NBD_OPT_GO?
When trying to connect to nbdkit with imageio nbd client, I get this error: $ rm -f /tmp/nbd.sock && nbdkit file file=/var/tmp/fedora-27.img -e export -U /tmp/nbd.sock $ python -c "import logging; logging.basicConfig(level=logging.DEBUG); from ovirt_imageio_common import nbd; c = nbd.Client('/tmp/nbd.sock', 'export')" INFO:nbd:Connecting to '/tmp/nbd.sock' 'export' DEBUG:nbd:Received server flags: 3 DEBUG:nbd:Sending client flags: 1: DEBUG:nbd:Sending option: 'IHAVEOPT\x00\x00\x00\x07\x00\x00\x00\x0c' data: bytear...
2018 Aug 04
2
Re: [PATCH nbdkit] protocol: Implement NBD_OPT_GO.
...me. >> > > Works for my python nbd client: > > $ rm -f /tmp/nbd.sock && src/nbdkit -f > plugins/file/.libs/nbdkit-file-plugin.so file=test.raw -e export -U > /tmp/nbd.sock > > $ python -c "import logging; logging.basicConfig(level=logging.DEBUG); > from ovirt_imageio_common import nbd; c = nbd.Client('/tmp/nbd.sock', > 'export'); c.write(1024**2, 'it works'); print c.read(1024**2, 8)" > INFO:nbd:Connecting to '/tmp/nbd.sock' 'export' > DEBUG:nbd:Received server flags: 3 > DEBUG:nbd:Sending client flags: 1: >...
2018 Aug 04
3
[PATCH nbdkit] protocol: Implement NBD_OPT_GO.
This is only lightly tested (against just qemu NBD client), and the code might be structured a little better as the _negotiate_handshake_newstyle_options function has now grown to be huge. Anyway works for me. Rich.
2018 Sep 19
1
Re: [PATCH 2/3] v2v: -o rhv-upload: Only set SSL context for https connections.
...context = ssl.create_default_context( purpose=ssl.Purpose.SERVER_AUTH, cafile=cafile) if not secure: context.check_hostname = False context.verify_mode = ssl.CERT_NONE See https://github.com/oVirt/ovirt-imageio/blob/356d224f1124deb3d63125b1f3b3e583839bcbd9/common/ovirt_imageio_common/client.py#L52 So we can replace this with context = ssl.create_default_context(cafile = params.get('rhv_cafile')) > + if destination_url.scheme == "https": > + context = ssl.create_default_context() > + context.load_verify_locations(cafile = param...
2018 Aug 02
0
Re: nbdkit does not support NBD_OPT_GO?
On 08/02/2018 11:51 AM, Nir Soffer wrote: > When trying to connect to nbdkit with imageio nbd client, I get this error: > > $ rm -f /tmp/nbd.sock && nbdkit file file=/var/tmp/fedora-27.img -e export > -U /tmp/nbd.sock > > ovirt_imageio_common.nbd.Error: The option sent by the client is unknown by > this server implementation [message=]) Correct, nbdkit has not yet implemented this extension. (It's on my list of things to add, someday...) > > According to the NBD protocol: > > For backwards compatibility, cl...
2018 Aug 04
0
Re: [PATCH nbdkit] protocol: Implement NBD_OPT_GO.
...now grown to be > huge. Anyway works for me. > Works for my python nbd client: $ rm -f /tmp/nbd.sock && src/nbdkit -f plugins/file/.libs/nbdkit-file-plugin.so file=test.raw -e export -U /tmp/nbd.sock $ python -c "import logging; logging.basicConfig(level=logging.DEBUG); from ovirt_imageio_common import nbd; c = nbd.Client('/tmp/nbd.sock', 'export'); c.write(1024**2, 'it works'); print c.read(1024**2, 8)" INFO:nbd:Connecting to '/tmp/nbd.sock' 'export' DEBUG:nbd:Received server flags: 3 DEBUG:nbd:Sending client flags: 1: DEBUG:nbd:Sending option:...
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload. Obviously for an upstream test we cannot require a working oVirt server. This test works by faking the ovirtsdk4 Python module, setting PYTHONPATH so that the fake module is picked up instead of the real module (if installed). However it's more complex than that because the nbdkit plugin also expects to talk to a working imageio HTTPS server. Therefore