<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/31/2012 01:40 AM, Sheldon wrote:<br>
</div>
<blockquote cite="mid:5090B9D7.8050302@linux.vnet.ibm.com"
type="cite">I make a domain name "ISO", Domain type is ISO,
Storage Type is NFS, Format is V1
<br>
<br>
$ sudo engine-iso-uploader -v --iso-domain=ISO upload
Fedora-17-x86_64-DVD.iso
<br>
[sudo] password for ovirt:
<br>
Please provide the REST API username for oVirt Engine (CTRL+D to
abort): admin@internal
<br>
Please provide the REST API password for the admin@internal oVirt
Engine user (CTRL+D to abort):
<br>
ERROR: Problem connecting to the REST API. Is the service
available and does the CA certificate exist?
<br>
ERROR: 'NoneType' object is not iterable
<br>
INFO: Use the -h option to see usage.
</blockquote>
<br>
Just to be clear the error in [1] is simply a symptom. It isn't the
root cause. The root cause is quite possibly the CA certificate.<br>
<br>
I have created a patch in [2] that I'd appreciate if you could test
as it will provide more debugging information about why the API
creation is failing. Simply follow the steps in [3]<br>
<br>
Cheers,<br>
Keith<br>
<br>
[1] ERROR: 'NoneType' object is not iterable<br>
[2] <a class="moz-txt-link-freetext" href="http://gerrit.ovirt.org/8954">http://gerrit.ovirt.org/8954</a><br>
[3] <br>
Step 1: git clone <a class="moz-txt-link-freetext"
href="http://gerrit.ovirt.org/p/ovirt-iso-uploader.git">http://gerrit.ovirt.org/p/ovirt-iso-uploader.git</a>
<br>
Step 2: Cherry pick the patch...<br>
<span class="GJEA35ODNS"><embed wmode="transparent"
type="application/x-shockwave-flash"
src="http://gerrit.ovirt.org/gerrit/gwtexpui_clippy1.cache.swf"
flashvars="text=git+fetch+git%3A%2F%2Fgerrit.ovirt.org%2Fovirt-iso-uploader+refs%2Fchanges%2F54%2F8954%2F2+%26%26+git+cherry-pick+FETCH_HEAD"
height="14" width="110"></span>git fetch
git://gerrit.ovirt.org/ovirt-iso-uploader refs/changes/54/8954/2
&& git cherry-pick FETCH_HEAD<br>
Step 3: export APP_VERSION=3.0.0; export APP_RELEASE=1
<br>
Step 4: cd ovirt-iso-uploader
<br>
Step 5: make
<br>
Step 6: Notice the ovirt-iso-uploader*.rpm location in the STDOUT
<br>
Step 7: yum install /path/to/ovirt-iso-uploader*.rpm
<br>
</body>
</html>