Bug 1824155

Summary: Correct import of ovirt_imageio ui and client
Product: [oVirt] ovirt-engine-sdk-python Reporter: Radek Duda <rduda>
Component: GeneralAssignee: Eyal Shenitzky <eshenitz>
Status: CLOSED CURRENTRELEASE QA Contact: Avihai <aefrat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aefrat, aoconnor, bugs, eshenitz, juan.hernandez, nsoffer, rbarry, tnisan
Target Milestone: ovirt-4.4.1Keywords: Regression
Target Release: ---Flags: sbonazzo: ovirt-4.4?
aoconnor: blocker+
sbonazzo: planning_ack?
sbonazzo: devel_ack?
sbonazzo: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:25:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radek Duda 2020-04-15 13:02:41 UTC
Description of problem:

In files /usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py and
/usr/share/doc/python3-ovirt-engine-sdk4/examples/download_disk.py is wrong import, which does not work anymore:

download_disk.py:29:from ovirt_imageio_common import client
download_disk.py:30:from ovirt_imageio_common import ui
upload_disk.py:44:from ovirt_imageio_common import client
upload_disk.py:45:from ovirt_imageio_common import ui

If I correct it to from ovirt_imageio import xy, it works

Version-Release number of selected component (if applicable):
python3-ovirt-engine-sdk4-4.4.2-1.el8ev.x86_64
ovirt-imageio-common-2.0.2-2.el8ev.x86_64

Comment 2 Nir Soffer 2020-04-18 20:37:13 UTC
Eyal posted a patch 2 weeks ago:
https://gerrit.ovirt.org/c/108225

Comment 4 Eyal Shenitzky 2020-06-03 12:15:07 UTC
In order to verify the bug, just try to run the scripts and see if they work.

Comment 6 Eyal Shenitzky 2020-06-07 06:35:21 UTC
You are missing the 'ovirt-imageio-client' library, please install it and try again:

$ sudo dnf install ovirt-imageio-client

Comment 7 Avihai 2020-06-07 06:40:51 UTC
Verified( ran scripts from host) on Versions:
> ovirt-imageio-common-2.0.6-0.el8ev.x86_64
> python3-ovirt-engine-sdk4-4.4.3-1.el8ev.x86_64

Comment 8 Sandro Bonazzola 2020-07-08 08:25:07 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

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