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
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.
Once this is fixed in the engine (see bug 1197788) you will be able to use the Python SDK in the following way: # Refresh the host capabilities: myhost = api.hosts.get(name="myhost") myhost.refreshcapabilities() # Get the refreshed host: myhost = api.hosts.get(name="myhost")
This issue has been fixed in upstream version 3.6.0.0preview10 and will be available downstream with the first 3.6 build.
verified with ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150627185750.git6f063c1.el6.noarch
wrong bug, moving back to ON_QA my mistake
verified in ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150627185750.git6f063c1.el6.noarch