Bug 950484 - [engine-image-uploader] Syntax error during rhevm-image-uploader
Summary: [engine-image-uploader] Syntax error during rhevm-image-uploader
Keywords:
Status: CLOSED DUPLICATE of bug 947085
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-iso-uploader
Version: 3.2.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.2.0
Assignee: Barak
QA Contact: Pavel Stehlik
URL:
Whiteboard: integration
Depends On:
Blocks: 857028
TreeView+ depends on / blocked
 
Reported: 2013-04-10 10:21 UTC by Elad
Modified: 2015-09-22 13:09 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-15 05:25:50 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (884.79 KB, application/x-gzip)
2013-04-10 10:21 UTC, Elad
no flags Details

Description Elad 2013-04-10 10:21:45 UTC
Created attachment 733608 [details]
logs

Description of problem:
rhevm-image-uploader -v upload -e export1 /tmp/bug14.tar.gz fails due to syntax error.


Version-Release number of selected component (if applicable):
rhevm-image-uploader-3.2.0-1.el6ev.noarch
rhevm-backend-3.2.0-10.18.beta2.el6ev.noarch


How reproducible:
100%

Steps to Reproduce:

1. Create a gluster volume and add the volume as NFS storage domain on RHEVM
3. Create also a export-domain on the gluster volume
2. Upload an image to the gluster nfs storage domain:

rhevm-image-uploader -v upload -e (export_domain_name) (image_name)



  
Actual results:

[root@elad-rhevm32 ~]# rhevm-image-uploader -v upload -e export1 /tmp/bug14.tar.gz
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
DEBUG: API Vendor(Red Hat)      API Version(3.2.0)
ERROR: getItem() got an unexpected keyword argument 'query'
INFO: Use the -h option to see usage.
DEBUG: Configuration:
DEBUG: command: upload
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 1403, in <module>
DEBUG:     imageup = ImageUploader(conf)
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 329, in __init__
DEBUG:     self.upload_to_storage_domain()
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 1186, in upload_to_storage_domain
DEBUG:     (id, address, path) = self.get_host_and_path_from_export_domain(self.configuration.get('export_domain'))
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 434, in get_host_and_path_from_export_domain
DEBUG:     sd = self.api.storagedomains.get(exportdomain)
DEBUG:   File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 7909, in get
DEBUG:     query="name=" + name
DEBUG: TypeError: getItem() got an unexpected keyword argument 'query'




Expected results:

There should not be a syntax error during image-upload.


Additional info:
see logs attached

Comment 1 Kiril Nesenko 2013-04-10 10:33:25 UTC
Elad,

1. You should upload ovf files and not tarballs.
2. Can you try to run the command int that way:
rhevm-image-uploader -v -e export1 upload /tmp/test.ovf

Comment 2 Elad 2013-04-10 12:04:21 UTC
(In reply to comment #1)
> Elad,
> 
> 1. You should upload ovf files and not tarballs.
> 2. Can you try to run the command int that way:
> rhevm-image-uploader -v -e export1 upload /tmp/test.ovf



[root@elad-rhevm32 tmp]# rhevm-image-uploader -v -e export1 upload /tmp/qq.ovf
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):
DEBUG: API Vendor(Red Hat)      API Version(3.2.0)
ERROR: getItem() got an unexpected keyword argument 'query'
INFO: Use the -h option to see usage.
DEBUG: Configuration:
DEBUG: command: upload
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 1403, in <module>
DEBUG:     imageup = ImageUploader(conf)
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 329, in __init__
DEBUG:     self.upload_to_storage_domain()
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 1186, in upload_to_storage_domain
DEBUG:     (id, address, path) = self.get_host_and_path_from_export_domain(self.configuration.get('export_domain'))
DEBUG:   File "/usr/bin/rhevm-image-uploader", line 434, in get_host_and_path_from_export_domain
DEBUG:     sd = self.api.storagedomains.get(exportdomain)
DEBUG:   File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 7909, in get
DEBUG:     query="name=" + name
DEBUG: TypeError: getItem() got an unexpected keyword argument 'query'
(In reply to comment #1)
> Elad,
> 
> 1. You should upload ovf files and not tarballs.
> 2. Can you try to run the command int that way:
> rhevm-image-uploader -v -e export1 upload /tmp/test.ovf

Comment 4 Michael Pasternak 2013-04-11 07:59:57 UTC
fixed in bug 947085, please make sure you're using SDK released in sf13-beta2

Comment 5 Moran Goldboim 2013-04-14 21:19:27 UTC
(In reply to comment #4)
> fixed in bug 947085, please make sure you're using SDK released in sf13-beta2

Elad, can you please try to reproduce with latest versions.


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