Bug 1197656 - [REGENERATE PYTHON SDK] Refresh host capabilities missing from Python-SDK
Summary: [REGENERATE PYTHON SDK] Refresh host capabilities missing from Python-SDK
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-python
Version: 3.5.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Juan Hernández
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On: 1197788
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-02 10:31 UTC by Meni Yakove
Modified: 2016-04-20 01:26 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-sdk-python-3.6.0.0-0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1197788 (view as bug list)
Environment:
Last Closed: 2016-04-20 01:26:21 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 38308 0 master MERGED sdk: Regenerate against the latest API Never

Description Meni Yakove 2015-03-02 10:31:34 UTC
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

Comment 1 Juan Hernández 2015-03-02 10:56:27 UTC
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 2 Juan Hernández 2015-03-02 16:00:37 UTC
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")

Comment 3 Juan Hernández 2015-03-03 08:50:37 UTC
This issue has been fixed in upstream version 3.6.0.0preview10 and will be available downstream with the first 3.6 build.

Comment 4 Lukas Svaty 2015-07-02 08:43:22 UTC
verified with ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150627185750.git6f063c1.el6.noarch

Comment 5 Lukas Svaty 2015-07-02 08:44:10 UTC
wrong bug, moving back to ON_QA my mistake

Comment 6 Lukas Svaty 2015-07-02 12:59:10 UTC
verified in ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150627185750.git6f063c1.el6.noarch


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