[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] v2v: rhv-upload-plugin: Defer imageio connection



On Wed, Jan 20, 2021 at 01:51:39PM +0200, Nir Soffer wrote:
> $ cat rhv-upload-test.sh
> #!/bin/sh
> 
> virt-v2v \
> -i disk /var/tmp/fedora-32.raw \
> -o rhv-upload \
> -oc https://engine-dev:8443/ovirt-engine/api \
> -op password \
> -on v2v \
> -os storage-nfs-00 \
> -of raw \
> -oa sparse \
> -oo rhv-cafile=ca.pem \
> -oo rhv-cluster=ost-el8 \
> -oo rhv-direct=false
> 
> The next issue is nbdkit:
> 
> $ ./run ./rhv-upload-test.sh
> nbdkit: error: cannot open plugin 'python': libpython3.7m.so.1.0:
> cannot open shared object file: No such file or directory
>
> $ ldd /usr/local/lib/nbdkit/plugins/nbdkit-python-plugin.so
> linux-vdso.so.1 (0x00007ffd50d53000)
> libpython3.7m.so.1.0 => not found
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9f43636000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f9f4346c000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f9f4368f000)
> 
> Fedora 32 is using python 3.8. Looks like nbdkit package is broken.
>
> I'll try to build and install nbdkit from source.

The nbdkit package in Fedora puts its plugins in /usr/lib64/nbdkit/plugins
(not /usr/local) so it seems like you're using a self-compiled package
already.  It should work with the package in Fedora, so I would remove
the self-compiled one and use the Fedora one.

> For simulating delay in block status, I think we can use something like:
> 
>     overlay.qcow2 -> nbdkit python
> 
> And implement a fake extents handler sleeping 70 seconds and returning
> single data extent. This should be long enough to trigger this issue.

Yup.

RIch.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]