Bug 947085
Summary: | [RHEVM-SDK] getItem() got an unexpected keyword argument 'query' | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Shruti Sampat <ssampat> |
Component: | ovirt-engine-sdk | Assignee: | Michael Pasternak <mpastern> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Elena <edolinin> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.2.0 | CC: | acathrow, bazulay, dtsang, dyasny, ebenahar, iheim, knarra, mmahoney, obasan, omachace, oramraz, pprakash, Rhev-m-bugs, sdharane, sgrinber, srevivo, yeylon, ykaul |
Target Milestone: | --- | ||
Target Release: | 3.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | sf13-beta2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 890327, 947383 | ||
Bug Blocks: | 857028 |
Description
Shruti Sampat
2013-04-01 15:03:04 UTC
what sdk version you're using? (please run 'info' command), i can't reproduce this on the latest [1], nor on [2] 3.2.0.5 you're using: [1] [RHEVM shell (connected)]# list clusters id : 99408929-82cf-4dc7-a532-9d998063fa95 name : Default description: The default server cluster [RHEVM shell (connected)]# show cluster --name Default id : 99408929-82cf-4dc7-a532-9d998063fa95 name : Default description : The default server cluster data_center-id : 5849b030-626e-47cb-ad90-3ce782d831b3 error_handling-on_error : migrate gluster_service : False memory_policy-overcommit-percent : 100 memory_policy-transparent_hugepages-enabled: True threads_as_cores : False version-major : 3 version-minor : 2 virt_service : True [RHEVM shell (connected)]# info sdk version : 3.2.0.6 cli version : 3.2.0.6 [2] sdk version : 3.2.0.5 cli version : 3.2.0.5 i just got similar complain [1], this could happen only if you had dirty environment (had dev artifacts installed with same version as rpm) and then installed the rhevm-sdk, 1. un-install sdk rpm 2. clean rhevm* in the /usr/lib/python2.7/site-packages 3. re-install sdk rpm [1] API_admin = ovirtsdk.api.API(url='https://.../api', insecure=True, username='...', password='...', filter=False) print API_admin.vms.get('abv') =============================================================================== Traceback (most recent call last): File "./t.py", line 9, in <module> print API_admin.vms.get('abv') File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 12956, in get query="name=" + name TypeError: getItem() got an unexpected keyword argument 'query' (In reply to comment #1) > what sdk version you're using? (please run 'info' command), i can't > reproduce this on the latest [1], nor on [2] 3.2.0.5 you're using: > > [1] > > [RHEVM shell (connected)]# list clusters > > id : 99408929-82cf-4dc7-a532-9d998063fa95 > name : Default > description: The default server cluster > > [RHEVM shell (connected)]# show cluster --name Default > > id : > 99408929-82cf-4dc7-a532-9d998063fa95 > name : Default > description : The default server cluster > data_center-id : > 5849b030-626e-47cb-ad90-3ce782d831b3 > error_handling-on_error : migrate > gluster_service : False > memory_policy-overcommit-percent : 100 > memory_policy-transparent_hugepages-enabled: True > threads_as_cores : False > version-major : 3 > version-minor : 2 > virt_service : True > > > [RHEVM shell (connected)]# info > > sdk version : 3.2.0.6 > cli version : 3.2.0.6 > > [2] > sdk version : 3.2.0.5 > cli version : 3.2.0.5 info command on my machine gives the following output - sdk version : 3.2.0.6 cli version : 3.2.0.5 please perform cleanup i've mentioned in the comment 2 and let me know if you still face this issue. the cause for this bug is a lack of bug 890327 backport in 3.2 *** Bug 947401 has been marked as a duplicate of this bug. *** Verified in sf13 *** Bug 950484 has been marked as a duplicate of this bug. *** 3.2 has been released 3.2 has been released 3.2 has been released |