Bug 1333889 - missing import in ovirtsdk.xml.params
Summary: missing import in ovirtsdk.xml.params
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-python
Classification: oVirt
Component: Core
Version: 3.6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-3.6.7
: 3.6.5.1
Assignee: Juan Hernández
QA Contact: Gonza
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-06 14:45 UTC by Fabrice Bacchella
Modified: 2016-07-04 12:30 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-sdk-python-3.6.5.1
Clone Of:
Environment:
Last Closed: 2016-07-04 12:30:17 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 57160 0 sdk_3.6 MERGED sdk: Use __module__ to check module membership 2020-04-15 12:47:39 UTC

Description Fabrice Bacchella 2016-05-06 14:45:45 UTC
The following simple python code fails :

    from ovirtsdk.xml import params
    ip = params.IP(address = '10.1.1.1', netmask = '255.255.254.0', gateway = '10.1.1.254')

With :

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "build/bdist.linux-x86_64/egg/ovirtsdk/xml/params.py", line 16346, in __init__
      File "build/bdist.linux-x86_64/egg/ovirtsdk/xml/params.py", line 371, in __setattr__
    KeyError: 'ovirtsdk.infrastructure.brokers'

But it succed if :

    import ovirtsdk.infrastructure.brokers

is added. This import should not be needed, as only params are used in this simple code.

Comment 1 Gonza 2016-06-08 08:51:09 UTC
Issue is still occurring on:
ovirt-engine-sdk-python-4.0.0.0-0.1.20150908.gitceb901a.fc22.noarch

Comment 2 Red Hat Bugzilla Rules Engine 2016-06-08 08:51:13 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Gonza 2016-06-10 14:28:03 UTC
Verified with:
rhevm-sdk-python-3.6.7.0-1.el6ev.noarch


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