Bug 1693283
Summary: | Exception AttributeError: "'module' object has no attribute 'dump_plugin'" in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | zhoujunqin <juzhou> | ||||
Component: | nbdkit | Assignee: | Libvirt Maintainers <libvirt-maint> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | --- | CC: | knoel, mxie, ptoscano, rjones, tgolembi, tzheng, xiaodwan, zili | ||||
Target Milestone: | pre-dev-freeze | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | V2V | ||||||
Fixed In Version: | nbdkit-1.12.5-1.module+el8.1.0+3868+35f94834 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-11-06 07:13:50 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: | |||||||
Attachments: |
|
Description
zhoujunqin
2019-03-27 13:11:10 UTC
FWIW there is nothing in virt-v2v which calls any function called dump_plugin. I wonder if it's something to do with the oVirt SDK. Looks like nbdkit issue to me. What is the version of nbdkit? Please include also version of the python plugin, i.e. nbdkit-plugin-python2 RPM From the log the command which fails is: nbdkit python '/var/tmp/v2v.dvwZLS/rhv-upload-plugin.py' --dump-plugin >/dev/null Exception AttributeError: "'module' object has no attribute 'dump_plugin'" in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored I'm able to reproduce this locally with: nbdkit-1.8.0-1.el7.x86_64 nbdkit-plugin-python2-1.8.0-1.el7.x86_64 nbdkit-plugin-python-common-1.8.0-1.el7.x86_64 python-ovirt-engine-sdk4-4.3.0-2.20190315gitfd728f8.el7.x86_64 With the ./rhv-upload-plugin.py file copied from the rhel-7.7 branch of the virt-v2v sources: $ nbdkit python2 ./rhv-upload-plugin.py --dump-plugin >/dev/null Exception AttributeError: "'module' object has no attribute 'dump_plugin'" in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored A minimal reproducer for this: ----------- /tmp/plugin.py --- import logging def open(readonly): pass def get_size(h): pass def pread(h, count, offset): pass ------------------------------ $ nbdkit python /tmp/plugin.py --dump-plugin >/dev/null Exception AttributeError: "'module' object has no attribute 'dump_plugin'" in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored Removing "import logging" makes the warning go away. OK I see, it's just a warning caused by a left over Python error. I fixed it upstream: https://github.com/libguestfs/nbdkit/commit/466b92be2fd0af2cf734ccc567c39c11586c7be3 Moving to RHEL 8. This is fixed in the 1.12.5 package. Verify bug with builds: virt-v2v-1.40.2-13.module+el8.1.0+3975+96069438.x86_64 libguestfs-1.40.2-13.module+el8.1.0+3975+96069438.x86_64 nbdkit-1.12.5-1.module+el8.1.0+3868+35f94834.x86_64 Steps: 1.Prepare a rhel8 conversion server and install latest packages. 2.Convert a vm from esxi server to rhv by virt-v2v command. # virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-debian9.6-x86_64-bug1481930 --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=true -oo rhv-cluster=nfs -of raw [ 0.2] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-debian9.6-x86_64-bug1481930 [ 2.2] Creating an overlay to protect the source from being modified [ 2.7] Opening the overlay ^C Result:There are no useless info printed during virt-v2v conversion,so change the bug from ON_QA to VERIFIED. 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:3723 |