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 1601943 - Improve error "No module named ovirtsdk4" in v2v rhv-upload conversion
Summary: Improve error "No module named ovirtsdk4" in v2v rhv-upload conversion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.6
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-17 13:57 UTC by mxie@redhat.com
Modified: 2018-10-30 07:47 UTC (History)
5 users (show)

Fixed In Version: libguestfs-1.38.2-9.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 07:47:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:3021 0 None None None 2018-10-30 07:47:28 UTC

Description mxie@redhat.com 2018-07-17 13:57:28 UTC
Description of problem:
Improve error "No module named ovirtsdk4" in v2v rhv-upload conversion 

Version-Release number of selected component (if applicable):
virt-v2v-1.38.2-8.el7.x86_64
libguestfs-1.38.2-8.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Try to convert guest to rhv4.2 using rhv-upload without installing python-ovirt-engine-sdk4 package, the conversion will be failed with error "No module named ovirtsdk4 "

# virt-v2v -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1  esx6.7-rhel7.5-x86_64 -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 -of raw --password-file /tmp/passwd -on t
Traceback (most recent call last):
  File "/var/tmp/rhvupload.hN4Zly/rhv-upload-plugin.py", line 32, in <module>
    import ovirtsdk4 as sdk
ImportError: No module named ovirtsdk4
nbdkit: error: /var/tmp/rhvupload.hN4Zly/rhv-upload-plugin.py: error running this script
virt-v2v: error: nbdkit Python plugin is not installed or not working.  It 
is required if you want to use ‘-o rhv-upload’.

See also "OUTPUT TO RHV" in the virt-v2v(1) manual.

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]


Actual results:
The error "No module named ovirtsdk4 " is not clear so that customers may don't know what package is needed

Expected results:
Improve error "No module named ovirtsdk4" in v2v rhv-upload conversion 

Additional info:

Comment 2 Pino Toscano 2018-07-17 15:15:18 UTC
Simple patch posted:
https://www.redhat.com/archives/libguestfs/2018-July/msg00035.html

Comment 3 Pino Toscano 2018-07-17 15:35:07 UTC
Fixed upstream with
https://github.com/libguestfs/libguestfs/commit/682d3f8b01bcf8260b4ddeb7e4bc7ea276f38f35
which is in libguestfs >= 1.39.8.

Comment 5 mxie@redhat.com 2018-07-25 09:56:59 UTC
Verify the bug with builds:
virt-v2v-1.38.2-9.el7.x86_64
libguestfs-1.38.2-9.el7.x86_64
nbdkit-plugin-python2-1.2.4-4.el7.x86_64
nbdkit-1.2.4-4.el7.x86_64
nbdkit-plugin-python-common-1.2.4-4.el7.x86_64


Steps:
1.Try to convert guest to rhv4.2 using rhv-upload without installing python-ovirt-engine-sdk4 package

1.1 # rpm -qa |grep ovirt-engine
noting

1.2 # virt-v2v -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1  esx6.7-rhel7.5-x86_64 -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 -of raw --password-file /tmp/passwd
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named ovirtsdk4
virt-v2v: error: the Python module ‘ovirtsdk4’ could not be loaded, is 
it installed?  See previous messages for problems.

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]


Hi Pino,

   Could make package name "python-ovirt-engine-sdk4" showing in the error message?

Comment 6 Pino Toscano 2018-08-01 11:48:06 UTC
(In reply to mxie from comment #5)
>    Could make package name "python-ovirt-engine-sdk4" showing in the error
> message?

I could, however:
- it would be a downstream-only change
- mentioning the package name alone will not be helpful either, since you need anyway to add extra channels to get it
- rhv-upload is mainly driven by CFME, and already dependencies will be taken care prior of calling virt-v2v
- users using rhv-upload manually need already to do extra steps

Because of the reasons above, IMHO the best action is to just document the manual procedure in KB (Knowledge Base), so the proper channels & package names can be be described in detail (which you cannot do in a simple error message).

Comment 7 mxie@redhat.com 2018-08-01 12:11:58 UTC
(In reply to Pino Toscano from comment #6)
> (In reply to mxie from comment #5)
> >    Could make package name "python-ovirt-engine-sdk4" showing in the error
> > message?
> 
> I could, however:
> - it would be a downstream-only change
> - mentioning the package name alone will not be helpful either, since you
> need anyway to add extra channels to get it
> - rhv-upload is mainly driven by CFME, and already dependencies will be
> taken care prior of calling virt-v2v
> - users using rhv-upload manually need already to do extra steps
> 
> Because of the reasons above, IMHO the best action is to just document the
> manual procedure in KB (Knowledge Base), so the proper channels & package
> names can be be described in detail (which you cannot do in a simple error
> message).

Thanks for your reply,creating KB to record the proper channels & package is really good idea, but who will write this Knowledge Base? Do I need to track this in bug? Can I move the bug to verified firstly?

Comment 8 Pino Toscano 2018-08-01 12:30:11 UTC
(In reply to mxie from comment #7)
> Thanks for your reply,creating KB to record the proper channels & package is
> really good idea, but who will write this Knowledge Base?

I'm in touch already with the documentation team, this is definitely under my radar.

> Can I move the bug to verified firstly?

I'd say so, yes.

Thanks!

Comment 9 mxie@redhat.com 2018-08-01 12:44:22 UTC
Thanks Pino, according to comment5 ~ comment8, move the bug from ON_QA to VERIFIED

Comment 11 errata-xmlrpc 2018-10-30 07:47:00 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/RHEA-2018:3021


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