| Summary: | [RHEVM-SDK-PYTHON] sdk ignores url attribute and hardcode /api | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Alon Bar-Lev <alonbl> |
| Component: | ovirt-engine-sdk | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED ERRATA | QA Contact: | sefi litmanovich <slitmano> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.4.0 | CC: | aberezin, acathrow, adahms, didi, gklein, iheim, juan.hernandez, oramraz, Rhev-m-bugs, sbonazzo, talayan, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | rhevm-sdk-python-3.4.0.3-1 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, the '/api' path was hard-coded into the Python SDK for Red Hat Enterprise Virtualization. Now, this path is no longer hard-coded, and users must supply a URL that is then parsed by the SDK to determine the supplied path, providing greater flexibility for accessing resources using the Python SDK.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-09 13:43:03 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 961677, 1053542, 1057367, 1078909, 1142926 | ||
|
Description
Alon Bar-Lev
2013-12-06 08:52:44 UTC
(In reply to Alon Bar-Lev from comment #0) > https://gerrit.eng.lab.tlv.redhat.com/gitweb?p=rhevm-sdk.git;a=blob;f=src/ > ovirtsdk/api.py;h=9d030855e30a3931b9921e9b2b231163b9192f15;hb=refs/heads/ > rhev-3.3#l125 > http://gerrit.ovirt.org/gitweb?p=ovirt-engine-sdk.git;a=blob;f=src/ovirtsdk/ > api.py;h=d43099ac5e92714e910651160af969f03b18085b;hb=HEAD#l129 > > 125 # Get entry point > 126 entry_point = proxy.request( > 127 method='GET', > 128 url='/api' > 129 ) > > Not sure about the java sdk it was too complex for me to chase the sequence. thanks alon! engine-setup nightly with all-in-one, which uses '/ovirt-engine/api' fails. A testcase in which I changed the call to '/api' fixed it. *** Bug 1053542 has been marked as a duplicate of this bug. *** Verified. reproduced with ovirt 3.4 ovirt-engine-3.4.0-0.11.beta3.el6.noarch with ovirt-engine-sdk-python-3.4.0.2-1.el6.noarch verified with ovirt 3.4 ovirt-engine-3.4.0-0.11.beta3.el6.noarch with ovirt-engine-sdk-python-3.4.0.4-1.el6.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0657.html |