Bug 1621894 - Rebase nbdkit in RHEL 7.7
Summary: Rebase nbdkit in RHEL 7.7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nbdkit
Version: 7.7
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V
: 1621898 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-23 19:59 UTC by Richard W.M. Jones
Modified: 2019-08-06 12:02 UTC (History)
8 users (show)

Fixed In Version: nbdkit-1.8.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1648696 (view as bug list)
Environment:
Last Closed: 2019-08-06 12:02:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2015 0 None None None 2019-08-06 12:02:17 UTC

Description Richard W.M. Jones 2018-08-23 19:59:03 UTC
Description of problem:

We are almost certainly going to need to rebase nbdkit in RHEL 7.7
so this is a placeholder bug for that task.

Version-Release number of selected component (if applicable):

We could either rebase along the 1.2 stable branch.  This would
be the safe, conservative choice as the stable branch contains
only bug fixes.

Or we could rebase to a new stable version, eg. 1.4.x, 1.6.x.

At this point we don't know, it will likely depend on the
requested bugs and features.

Comment 2 Richard W.M. Jones 2018-08-23 20:00:37 UTC
Adding V2V flag because this would affect virt-v2v.

Comment 4 Richard W.M. Jones 2019-01-28 13:47:07 UTC
Pino, do we have room to rebase this again (to 1.10.2)?

Comment 5 Pino Toscano 2019-01-28 13:58:59 UTC
(In reply to Richard W.M. Jones from comment #4)
> Pino, do we have room to rebase this again (to 1.10.2)?

Yes.

Comment 6 Richard W.M. Jones 2019-05-13 10:02:50 UTC
*** Bug 1621898 has been marked as a duplicate of this bug. ***

Comment 7 mxie@redhat.com 2019-06-20 08:08:00 UTC
Verify the bug with builds:
nbdkit-plugin-python2-1.8.0-1.el7.x86_64
nbdkit-plugin-python-common-1.8.0-1.el7.x86_64
nbdkit-plugin-vddk-1.8.0-1.el7.x86_64
nbdkit-1.8.0-1.el7.x86_6
virt-v2v-1.40.2-5.el7.x86_64
libguestfs-1.40.2-5.el7.x86_64
kernel-3.10.0-1057.el7.x86_64
qemu-kvm-rhev-2.12.0-32.el7.x86_64
libvirt-4.5.0-22.el7.x86_6


Steps:

Scenario1:check nbdkit packages on brewweb and rhel7.7 repository

1.1 Check nbdkit packages for rhel7 on brewweb, found below packages:
nbdkit-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-basic-plugins-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-devel-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-example-plugins-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-plugin-python-common-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-plugin-python2-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-plugin-vddk-1.8.0-1.el7.x86_64.rpm (info) (download)
nbdkit-debuginfo-1.8.0-1.el7.x86_64.rpm (info) (download) 

1.2 Check ndbkit packages in rhel7.7 repository
1.2.1 Check in Server/x86_64/repository
# pwd
/media/rhel/rel-eng/RHEL-7.7-20190619.0/compose/Server/x86_64/os

# ls Packages |grep nbdkit
nbdkit-1.8.0-1.el7.x86_64.rpm                     
nbdkit-plugin-python-common-1.8.0-1.el7.x86_64.rpm 
nbdkit-plugin-python2-1.8.0-1.el7.x86_64.rpm      
nbdkit-plugin-vddk-1.8.0-1.el7.x86_64.rpm 

1.2.2.Check in Server-optional/x86_64/ repository
# pwd
/media/rhel/rel-eng/RHEL-7.7-20190619.0/compose/Server-optional/x86_64/os

# ls Packages |grep nbdkit
nbdkit-basic-plugins-1.8.0-1.el7.x86_64.rpm     
nbdkit-devel-1.8.0-1.el7.x86_64.rpm               
nbdkit-example-plugins-1.8.0-1.el7.x86_64.rpm 

1.2.2 Check in Server/x86_64/debug/ repository
nbdkit-debuginfo-1.8.0-1.el7.x86_64.rpm       



Scenario2:test nbdkit by virt-v2v
2.1 Convert a guest from VMware via vddk library to rhv's data domain directly by virt-v2v, conversion could be finished without error and checkpoints of guest are passed after conversion
# virt-v2v -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.196.89/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA esx6.5-rhel7.5-x86_64 --password-file /tmp/passwd -o rhv-upload -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data -op /tmp/rhvpasswd -oo rhv-cafile=/home/ca.pem  -oo rhv-direct -of raw -b ovirtmgmt
virt-v2v -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.196.89/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA esx6.5-rhel7.5-x86_64 --password-file /tmp/passwd -o rhv-upload -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data -op /tmp/rhvpasswd -oo rhv-cafile=/home/ca.pem  -oo rhv-direct -of raw -b ovirtmgmt -oo rhv-cluster=nfs
Exception AttributeError: "'module' object has no attribute 'dump_plugin'" in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored
[   0.4] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.196.89/?no_verify=1 esx6.5-rhel7.5-x86_64 -it vddk  -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA
[   2.1] Creating an overlay to protect the source from being modified
nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported.
[   5.1] Opening the overlay
nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported.
[  11.8] Inspecting the overlay
[  37.0] Checking for sufficient free disk space in the guest
[  37.0] Estimating space required on target for each disk
[  37.0] Converting Red Hat Enterprise Linux Server 7.5 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 159.2] Mapping filesystem data to avoid copying unused and blank areas
[ 159.8] Closing the overlay
[ 160.1] Assigning disks to buses
[ 160.1] Checking if the guest needs BIOS or UEFI to boot
[ 160.1] Initializing the target -o rhv-upload -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -op /tmp/rhvpasswd -os nfs_data
[ 161.5] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": "/var/tmp/rhvupload.afjSSb/nbdkit0.sock", "file.export": "/" } (raw)
nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported.
    (100.00/100%)
[ 796.2] Creating output metadata
[ 816.0] Finishing off

Result2.1:
   The nbdkit error info has been tracked by bug1615392 

2.2 The all cases ran with rhv-upload and vddk are passed in the virt-v2v automated testing
https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/v2v/view/RHEL-7.7/job/v2v-RHEL-7.7-runtest-x86_64-acceptance-ovirt/36/testReport/rhev/convert_vm_to_ovirt/



Scenario3:check nbdkit help info and man page

3.1 Check nbdkit help info
# nbdkit --help
nbdkit [-D|--debug PLUGIN|FILTER.FLAG=N]
       [-e|--exportname EXPORTNAME] [--exit-with-parent]
       [--filter FILTER ...] [-f|--foreground]
       [-g|--group GROUP] [-i|--ipaddr IPADDR]
       [--log stderr|syslog]
       [-n|--newstyle] [-o|--oldstyle]
       [-P|--pidfile PIDFILE]
       [-p|--port PORT] [-r|--readonly]
       [--run CMD] [-s|--single] [--selinux-label LABEL]
       [-t|--threads THREADS]
       [--tls off|on|require]
       [--tls-certificates /path/to/certificates]
       [--tls-psk /path/to/pskfile] [--tls-verify-peer]
       [-U|--unix SOCKET] [-u|--user USER]
       [-v|--verbose] [-V|--version]
       PLUGIN [KEY=VALUE [KEY=VALUE [...]]]
....
Please read the nbdkit(1) manual page for full usage.

3.2 Check nbdkit man page and page can be opened normally 
# man nbdkit



Result:
    nbdkit packages work well with virt-v2v, so move the bug from ON_QA to VERIFIED

Comment 9 errata-xmlrpc 2019-08-06 12:02:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2015


Note You need to log in before you can comment on or make changes to this bug.