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

Bug 1333889

Summary: missing import in ovirtsdk.xml.params
Product: [oVirt] ovirt-engine-sdk-python Reporter: Fabrice Bacchella <fabrice.bacchella>
Component: CoreAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Gonza <grafuls>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.3.0CC: bugs, mgoldboi
Target Milestone: ovirt-3.6.7Keywords: Rebase, ZStream
Target Release: 3.6.5.1Flags: rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-sdk-python-3.6.5.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-04 12:30:17 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:

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