Bug 1197788

Summary: Refresh host capabilities missing from Python-SDK
Product: Red Hat Enterprise Virtualization Manager Reporter: Juan Hernández <juan.hernandez>
Component: ovirt-engineAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Karolína Hajná <khajna>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, gklein, lsurette, myakove, pstehlik, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1197656 Environment:
Last Closed: 2016-04-20 01:28:43 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:
Bug Depends On:    
Bug Blocks: 1197656    

Description Juan Hernández 2015-03-02 15:43:48 UTC
+++ This bug was initially created as a clone of Bug #1197656 +++

Description of problem:
There is no way to Refresh host capabilities via Python-SDK
The only way to Refresh host capabilities is via url ovirt-engine/api/hosts/<HOST_ID>;force

Version-Release number of selected component (if applicable):
rhevm-sdk-python-3.5.0.8-2.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
API = API(url=URL, username=USERNAME, password=PASSWORD, insecure=True)
HOST = API.hosts.get(HOSTS)


Actual results:
No Refresh host capabilities under HOST object

Expected results:
Should be Refresh host capabilities under HOST object

--- Additional comment from Juan Hernández on 2015-03-02 05:56:27 EST ---

This happens because currently the generator of the Python SDK ignores any parameter that is passed to the entity resource, it only takes into account the parameters passed to the collection resource.

Comment 1 Juan Hernández 2015-03-02 15:47:28 UTC
The right way to solve this issue is to explicitly represent the "refresh host capabilities" action, instead of using the somewhat obscure (and unsupported by the Python SDK) "force" matrix parameter of the GET method. Once this is implemented in the engine the Python SDK will need to be regenerated.

Comment 2 Karolína Hajná 2015-04-29 08:19:18 UTC
Verified on rhevm-sdk-python.noarch 0:3.6.0.0-0.2.20150406git5290ed3.el7