Bug 894688 - [ovirt-iso-uploader] Can not use iso-uploader due to certificate issues
[ovirt-iso-uploader] Can not use iso-uploader due to certificate issues
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-iso-uploader (Show other bugs)
x86_64 Linux
urgent Severity urgent
: ---
: 3.2.0
Assigned To: Kiril Nesenko
Ilanit Stein
: Regression
Depends On:
Blocks: 915537
  Show dependency treegraph
Reported: 2013-01-13 03:28 EST by Kiril Nesenko
Modified: 2014-07-10 20:09 EDT (History)
11 users (show)

See Also:
Fixed In Version: rhevm-iso-uploader-3.2.0-0.1.master.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
Previously, the naming convention in place for the certificate file used by rhevm-iso-uploader to ensure secure communications prevented the uploader from working correctly. The certificate file, formerly named engine_ca, is now called cert_file, and the rhevm-iso-uploader functions correctly.
Story Points: ---
Clone Of:
Last Closed: 2013-06-10 16:17:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 11021 None None None Never

  None (edit)
Description Kiril Nesenko 2013-01-13 03:28:19 EST
Description of problem:
Can not use iso-uploader due to certificate issues. 
the way optparse works is to first try and find an exact match of the param (that is to match "engine" with "engine"), and if there's no match, it will check whether "engine" could be an abbreviation of another param (that is there's only one parameter that begins with "engine") , and in this case "engine_ca" matches. This causes "engine_ca" param to get value of "engine" from the configuration file, and thus supply incorrect value to the API object creation. 

Fix is to replace "engine_ca" -> "ca_file"/"cert_file"/"certificate"

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 2 Kiril Nesenko 2013-01-15 04:00:56 EST
Patch posted for review: http://gerrit.ovirt.org/#/c/11021/1
Comment 4 Ilanit Stein 2013-02-20 07:30:37 EST
Verified on sf7:

[root@lilach-rhel ~]# engine-iso-uploader --engine lilach-rhel.qa.lab.tlv.redhat.com list
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): 
ERROR: There are no ISO storage domains.
Comment 5 errata-xmlrpc 2013-06-10 16:17:31 EDT
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.


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