Bug 1059892

Summary: OVIRT-PYTHON-SDK Cluster object lacks 'ksm' and 'ha_reservation' parameter that exists in api.xsd
Product: [Retired] oVirt Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, eedri, gklein, iheim, istein, mbourvin, oramraz, yeylon
Target Milestone: ---Keywords: AutomationBlocker, TestBlocker
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-engine-sdk-python-3.4.0.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:31:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1024889    

Description Ilia Meerovich 2014-01-30 20:44:24 UTC
rpms:
ovirt-engine-3.4.0-0.5.beta1.el6.noarch
ovirt-engine-sdk-python-3.4.0.2-1.20140114.gitbaccf38.el6

Appears in api.xsd:

<xs:element ref="ksm" minOccurs="0" maxOccurs="1"/>
<xs:element name="ha_reservation" type="xs:boolean" minOccurs="0" maxOccurs="1"/>

doesn't appear in python sdk (and most probably doesn't appear in java sdk too)

Comment 1 Juan Hernández 2014-01-30 21:37:25 UTC
These properties have been added after the latest refresh of the SDKs. They will be available in the next release.

Comment 2 Ilia Meerovich 2014-02-17 08:20:49 UTC
raising severity to urgent since it is tier 0 bug

Comment 3 Juan Hernández 2014-02-18 13:53:08 UTC
The packages containing the fix for this issue are available here:

http://jhernand.fedorapeople.org/rpms/ovirt-engine-sdk-python/3.4.0.4-1

Comment 4 Juan Hernández 2014-02-18 15:41:39 UTC
*** Bug 1059125 has been marked as a duplicate of this bug. ***

Comment 5 Ilia Meerovich 2014-02-19 08:49:12 UTC
imeerovi@imeerovi ~/git/ART (RHEVM-979-dc-search) $ bpython
>>> from ovirtsdk.xml import params
>>> 
>>> from ovirtsdk.api import API 
>>> api = API(url='https://ilia-rhevm.qa.lab.tlv.redhat.com:443', username='admin@internal', password='123456', insecure=True) 
>>> d = api.datacenters.add(params.DataCenter(name='dc_iscsi34', storage_type='iscsi', version=params.Version(major='3', minor='4')))
>>> api.clusters.add(params.Cluster(name='cl_iscsi34', cpu=params.CPU(id='Intel Conroe Family'), data_center=d, ha_reservation=True))
<ovirtsdk.infrastructure.brokers.Cluster object at 0x2d320d0>
>>> cl = api.clusters.list()[0]
>>> cl.get_ksm()
<ovirtsdk.xml.params.KSM object at 0x2fce110>
>>> 
imeerovi@imeerovi ~/git/ART (RHEVM-979-dc-search) $ rpm -q ovirt-engine-sdk-python
ovirt-engine-sdk-python-3.4.0.4-1.el6.noarch

Comment 6 Sandro Bonazzola 2014-03-31 12:31:19 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released