Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1349774

Summary: Missing import from ovirtsdk4.readers
Product: Red Hat Enterprise Virtualization Manager Reporter: Gonza <grafuls>
Component: ovirt-engine-sdk-pythonAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Gonza <grafuls>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, dornelas, grafuls, juan.hernandez, movciari
Target Milestone: ovirt-4.0.2   
Target Release: 4.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovirt-engine-sdk4-4.0.0-0.5.a5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 12:48:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix
none
patch juan.hernandez: review+

Description Gonza 2016-06-24 08:37:00 UTC
Description of problem:
The following simple python code fails:
>>> from ovirtsdk4 import readers
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/readers.py", line 21, in <module>
    from ovirtsdk4 import types
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/types.py", line 20, in <module>
    from enum import Enum, unique
ImportError: No module named enum

Version-Release number of selected component (if applicable):
ovirt-engine-sdk-python-3.6.7.0-1.el7ev.noarch

How reproducible:
100 %

Additional info:
This is affecting engine-image-uploader

Comment 1 Juan Hernández 2016-06-24 09:39:18 UTC
The SDK that you are using is version 4, but the "version-release" that you put in the description of the bug is 3.5.7, because you are using an incorrect package name. The package name for version 4 of the SDK is "python-ovirt-engine-sdk4". So to get the exact version please do the following:

  $ rpm -q python-ovirt-engine-sdk4

Comment 2 Gonza 2016-06-24 09:58:00 UTC
python-ovirt-engine-sdk4-4.0.0-0.0.a3.el7ev.x86_64

Comment 3 Ondra Machacek 2016-06-24 10:03:22 UTC
I've check out with Gonza, and it's dowsntream issue.

Comment 4 Ondra Machacek 2016-06-24 10:04:17 UTC
Created attachment 1171903 [details]
fix

Comment 5 Juan Hernández 2016-06-24 10:07:30 UTC
Ondra, the patch looks good, but we should also update the "Release" tag, should be 0.1.a3, and the change log.

Comment 6 Ondra Machacek 2016-06-24 10:53:43 UTC
Created attachment 1171921 [details]
patch

Comment 7 Gil Klein 2016-07-27 12:48:34 UTC
This bug was fixed and is slated to be in the upcoming version. As we
are focusing our testing at this phase on severe bugs, this bug was
closed without going through its verification step. If you think this
bug should be verified by QE, please set its severity to high and move
it back to ON_QA

Comment 8 Ondra Machacek 2016-08-01 10:00:56 UTC
*** Bug 1362105 has been marked as a duplicate of this bug. ***