Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1621894

Summary: Rebase nbdkit in RHEL 7.7
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: nbdkitAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.7CC: juzhou, mtessun, mxie, mzhan, ptoscano, tzheng, xiaodwan, zili
Target Milestone: rcKeywords: Rebase
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: nbdkit-1.8.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1648696 (view as bug list) Environment:
Last Closed: 2019-08-06 12:02:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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