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
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
(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
fixed in bug 947085, please make sure you're using SDK released in sf13-beta2
(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.