Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 951100

Summary: rhevm-image-uploader does not respect "--insecure"
Product: Red Hat Enterprise Virtualization Manager Reporter: Thom Carlin <tcarlin>
Component: ovirt-image-uploaderAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED UPSTREAM QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: acathrow, dajohnso, iheim, jkt, knesenko, Rhev-m-bugs, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: rhevm-image-uploader-3.3.0-0.1.rc.el6ev Doc Type: Bug Fix
Doc Text:
Previously, the --insecure flag was passed to the rhevm-image-uploader with the intention of operating without a security certificate. However, the --insecure flag removes certification validation, rather than the requirement of a certificate. Users that tried to upload images using the rhevm-image-uploader by passing the --insecure flag found that they could not upload images without a CA certificate. A new flag was created in ovirt-sdk allowing insecure object creation. The image-uploader uses the new ovirt-sdk and now the --insecure option no longer requires a CA certificate.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-24 20:46:25 UTC Type: Bug
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:    
Bug Blocks: 1019461    

Description Thom Carlin 2013-04-11 13:24:35 UTC
Description of problem:

rhevm-image-uploader does not appear to respect --insecure.

Version-Release number of selected component (if applicable):

3.1.0.8

How reproducible:

Every time

Steps to Reproduce:
1. On remote system: rhevm-image-uploader --insecure -u user.com -r rhevm.example.com list
2.
3.
  
Actual results:

ERROR: Problem connecting to the REST API.  Is the service available and does the CA certificate exist?


Expected results:

Export Storage Domain Name     | Datacenter                | Export Domain Status
<details>

Additional info:

Workaround:
1) Follow Procedure 2.1 in https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.1/html/Developer_Guide/chap-REST_API_Guide-Authentication.html#sect-REST_API_Guide-Authentication-SSL
2) rhevm-image-uploader --engine-ca=</path/to/downloaded/cert> -u user.com -r rhevm.example.com list

Comment 1 Sandro Bonazzola 2013-08-20 07:06:19 UTC
*** Bug 950643 has been marked as a duplicate of this bug. ***

Comment 2 Sandro Bonazzola 2013-08-20 09:17:04 UTC
This bug will be solved as in bug #886525, aligning the method that initialize the API with rhevm-iso-uploader.

Comment 3 Sandro Bonazzola 2013-08-21 06:00:50 UTC
patch merged upstream master, pushed to 3.3 branch.

Aligning API initialization method with iso-uploader.
This includes:
- fixed creating objects in an insecure way
- align imageuploader.conf with isouploader.conf
- align sdk version requirement

Comment 4 Sandro Bonazzola 2013-08-21 06:14:48 UTC
patch merged upstream 3.3 branch