Bug 1102535

Summary: option insecure doesn't work
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engine-iso-uploaderAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED ERRATA QA Contact: Petr Beňas <pbenas>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: acathrow, dfediuck, didi, gklein, iheim, juan.hernandez, lbopf, lveyde, pstehlik, Rhev-m-bugs, sbonazzo, scohen, stirabos, yeylon
Target Milestone: ---Keywords: Rebase, Regression, ZStream
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-iso-uploader-3.4.1-2.el6ev Doc Type: Rebase: Bug Fixes Only
Doc Text:
Previously, the --insecure command line option for engine-image-uploader and engine-iso-uploader did not work as intended. Now, after correctly mapping the command line insecure parameter to the API SDK insecure parameter, this problem is fixed.
Story Points: ---
Clone Of: 1100824 Environment:
Last Closed: 2014-07-29 14:20:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1100824    
Bug Blocks:    

Comment 3 Petr Beňas 2014-06-24 15:05:01 UTC
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# ll
total 0
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# engine-iso-uploader -i iso upload -r localhost /tmp/test.iso 
ERROR: Unable to connect to REST API.  Message: The host name "localhost" contained in the URL doesn't match any of the names in the server certificate.
ERROR: 'NoneType' object is not iterable
INFO: Use the -h option to see usage.
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# engine-iso-uploader -i iso upload -r localhost --insecure /tmp/test.iso 
ERROR: Unable to connect to REST API.  Message: The host name "localhost" contained in the URL doesn't match any of the names in the server certificate.
ERROR: 'NoneType' object is not iterable
INFO: Use the -h option to see usage.
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# rpm -qa rhevm-iso-uploader
rhevm-iso-uploader-3.4.0-3.el6ev.noarch
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# rpm -Uvh http://download.devel.redhat.com/brewroot/packages/rhevm-iso-uploader/3.4.1/2.el6ev/noarch/rhevm-iso-uploader-3.4.1-2.el6ev.noarch.rpm
Retrieving http://download.devel.redhat.com/brewroot/packages/rhevm-iso-uploader/3.4.1/2.el6ev/noarch/rhevm-iso-uploader-3.4.1-2.el6ev.noarch.rpm
Preparing...                ########################################### [100%]
   1:rhevm-iso-uploader     ########################################### [100%]
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# rpm -qa rhevm-iso-uploaderrhevm-iso-uploader-3.4.1-2.el6ev.noarch
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# engine-iso-uploader -i iso upload -r localhost /tmp/test.iso ERROR: Unable to connect to REST API.  Message: The host name "localhost" contained in the URL doesn't match any of the names in the server certificate.
ERROR: 'NoneType' object is not iterable
INFO: Use the -h option to see usage.
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# engine-iso-uploader -i iso upload -r localhost --insecure /tmp/test.iso 
Uploading, please wait...
INFO: Start uploading /tmp/test.iso 
INFO: /tmp/test.iso uploaded successfully
[root@pb-rh34 11111111-1111-1111-1111-111111111111]# ll
total 4
-rw-r-----. 1 vdsm kvm 4 Jun 24 17:04 test.iso

Comment 5 errata-xmlrpc 2014-07-29 14:20:42 UTC
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/RHBA-2014-0969.html