<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dennis,<br>
<br>
You're in the same spot as another user and, it could quite
possibly be the cert. However, I need additional information
debug that. <br>
<br>
I'm repeating my response from that other post [1] and, I'd
appreciate it if you gave the steps [1-7] a whirl.<br>
<br>
Cheers,<br>
Keith<br>
<br>
[1]<br>
<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>
<br>
<br>
On 10/31/2012 12:08 PM, Dennis Böck wrote:<br>
</div>
<blockquote
cite="mid:2452E8A35A372E4F8654136ACEABDBCE24F7E739@DB3PRD0311MB403.eurprd03.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">
<p>Here is the output with verbose option:</p>
<p> </p>
<p>[root@vdihost1 ovirt]# engine-iso-uploader upload -v -i
local-iso-share Fedora-17-x8<br>
Please provide the REST API username for oVirt Engine (CTRL+D
to abort): admin<br>
Please provide the REST API password for the admin oVirt
Engine user (CTRL+D to abort):
<br>
ERROR: Unable to connect to REST API. Reason: Unauthorized<br>
ERROR: 'NoneType' object is not iterable<br>
INFO: Use the -h option to see usage.<br>
DEBUG: Configuration:<br>
DEBUG: command: upload<br>
DEBUG: Traceback (most recent call last):<br>
DEBUG: File "/bin/engine-iso-uploader", line 956, in
<module><br>
DEBUG: isoup = ISOUploader(conf)<br>
DEBUG: File "/bin/engine-iso-uploader", line 334, in
__init__<br>
DEBUG: self.upload_to_storage_domain()<br>
DEBUG: File "/bin/engine-iso-uploader", line 690, in
upload_to_storage_domain<br>
DEBUG: (id, address, path) =
self.get_host_and_path_from_ISO_domain(self.configuration.get('iso_domain'))<br>
DEBUG: TypeError: 'NoneType' object is not iterable</p>
<p> </p>
<p> </p>
<hr tabindex="-1">
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000;
FONT-SIZE: 16px">
<div style="DIRECTION: ltr" id="divRpF97632"><font
color="#000000" face="Tahoma" size="2"><b>Von:</b> Keith
Robertson [<a class="moz-txt-link-abbreviated" href="mailto:kroberts@redhat.com">kroberts@redhat.com</a>]<br>
<b>Gesendet:</b> Dienstag, 30. Oktober 2012 17:20<br>
<b>An:</b> Dennis Böck<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@ovirt.org">users@ovirt.org</a><br>
<b>Betreff:</b> Re: AW: [Users] engine-iso-uploader
problem<br>
</font><br>
</div>
<div>
<div class="moz-cite-prefix">Can you re-run with -v
(verbose) and send me the output?<br>
<br>
On 10/30/2012 12:00 PM, Dennis Böck wrote:<br>
</div>
<blockquote type="cite">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR:
#000000; FONT-SIZE: 10pt">
<p>Thanks for the instructions how to build. I did it
and installed the rpm.</p>
<p>Now I get a new error message:</p>
<p> </p>
<div>
<p><font face="Tahoma" size="2">[root@vdihost1 RPMS]#
engine-iso-uploader upload -i local-iso-share
/run/media/dennis/4F0B-18DE/ovirt/Fedora-17-x86_64-Live-Desktop.iso<br>
Please provide the REST API username for oVirt
Engine (CTRL+D to abort): admin <br>
Please provide the REST API password for the admin
oVirt Engine user (CTRL+D to abort):
<br>
ERROR: Unable to connect to REST API. Reason:
Unauthorized<br>
ERROR: 'NoneType' object is not iterable<br>
INFO: Use the -h option to see usage.</font></p>
<p> </p>
<p>I am sure, that I used the same password as I used
for the webinterface.</p>
<p>Any ideas?</p>
<p> </p>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR:
#000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF97215"><font
color="#000000" face="Tahoma" size="2"><b>Von:</b>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:users-bounces@ovirt.org"
target="_blank">
users-bounces@ovirt.org</a> [<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:users-bounces@ovirt.org"
target="_blank">users-bounces@ovirt.org</a>]" im
Auftrag von "Keith Robertson [<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:kroberts@redhat.com"
target="_blank">kroberts@redhat.com</a>]<br>
<b>Gesendet:</b> Mittwoch, 24. Oktober 2012 18:02<br>
<b>An:</b> Dennis Böck<br>
<b>Cc:</b> <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:users@ovirt.org" target="_blank">
users@ovirt.org</a><br>
<b>Betreff:</b> Re: [Users] engine-iso-uploader
problem<br>
</font><br>
</div>
<div>
<div class="moz-cite-prefix">On 10/24/2012 11:43 AM,
Dennis Böck wrote:<br>
</div>
<blockquote type="cite">
<style>@font-face {
        font-family: Helvetica;
}
@font-face {
        font-family: Helvetica;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page WordSection1 {margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.MsoAcetate {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt
}
LI.MsoAcetate {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt
}
DIV.MsoAcetate {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt
}
SPAN.E-MailFormatvorlage18 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d
}
SPAN.SprechblasentextZchn {
        FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black
}
.MsoChpDefault {
        FONT-SIZE: 10pt
}
</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US">Since I am not
experienced in building software, I took
<a moz-do-not-send="true"
href="http://www.ovirt.org/releases/3.1/rpm/Fedora/17/noarch/ovirt-iso-uploader-3.1.0-0.git1841d9.fc17.noarch.rpm"
target="_blank">
http://www.ovirt.org/releases/3.1/rpm/Fedora/17/noarch/ovirt-iso-uploader-3.1.0-0.git1841d9.fc17.noarch.rpm</a>
</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US">But your
e-mail sounded like that you can just set a
parameter to avoid the problem?</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US">Maybe I could
avoid the problem, if there was another way
for installing VMS/bringing ISOs to VMs?</span></p>
</div>
</blockquote>
<br>
It doesn't appear to be build yet.<br>
<br>
Step 1: git clone <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://gerrit.ovirt.org/p/ovirt-iso-uploader.git"
target="_blank">
http://gerrit.ovirt.org/p/ovirt-iso-uploader.git</a><br>
Step 2: export APP_VERSION=3.0.0; export
APP_RELEASE=1<br>
Step 3: cd ovirt-iso-uploader<br>
Step 4: make<br>
Step 5: Notice the ovirt-iso-uploader*.rpm location
in the STDOUT<br>
Step 6: yum install /path/to/ovirt-iso-uploader*.rpm<br>
<br>
<blockquote type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US"></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US"></span> </p>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d;
FONT-SIZE: 11pt" lang="EN-US"></span> </p>
<div>
<div style="BORDER-BOTTOM: medium none;
BORDER-LEFT: medium none; PADDING-BOTTOM:
0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm;
BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT:
medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; COLOR:
windowtext; FONT-SIZE: 10pt">Von:</span></b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; COLOR:
windowtext; FONT-SIZE: 10pt"> Keith
Robertson [<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="mailto:kroberts@redhat.com"
target="_blank">mailto:kroberts@redhat.com</a>]
<br>
<b>Gesendet:</b> Mittwoch, 24. Oktober
2012 17:08<br>
<b>An:</b> Dennis Böck<br>
<b>Cc:</b> <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:users@ovirt.org"
target="_blank">
users@ovirt.org</a><br>
<b>Betreff:</b> Re: AW: [Users]
engine-iso-uploader problem</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On 10/24/2012 10:56 AM,
Dennis Böck wrote:</p>
</div>
<blockquote style="MARGIN-TOP: 5pt;
MARGIN-BOTTOM: 5pt">
<div>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">Obviously
my e-mail wasn't added to the intendet
thread:</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt"><a
moz-do-not-send="true"
href="http://lists.ovirt.org/pipermail/users/2012-September/003670.html"
target="_blank">http://lists.ovirt.org/pipermail/users/2012-September/003670.html</a></span></p>
</div>
</blockquote>
<p class="MsoNormal">Ah, that 'insecure flag'.
That change should be merged. Are you still
experiencing the issue with a recent build of
the iso-uploader?<br>
<br>
<a moz-do-not-send="true"
href="http://gerrit.ovirt.org/#/c/7774/"
target="_blank">http://gerrit.ovirt.org/#/c/7774/</a><br>
<br>
</p>
<div>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">(How
can I reply to a such a thread??)</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">Thanks
in advance</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">Dennis</span></p>
<div>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt"></span> </p>
<div>
<div>
<div style="TEXT-ALIGN: center"
class="MsoNormal" align="center"><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE:
10pt">
<hr size="2" width="100%"
align="center">
</span></div>
</div>
</div>
</div>
<div>
<div id="divRpF351203">
<p style="MARGIN-BOTTOM: 12pt"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE:
10pt">Von:</span></b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE:
10pt">
<a moz-do-not-send="true"
href="mailto:users-bounces@ovirt.org"
target="_blank">users-bounces@ovirt.org</a>
[<a moz-do-not-send="true"
href="mailto:users-bounces@ovirt.org"
target="_blank">users-bounces@ovirt.org</a>]"
im Auftrag von "Keith Robertson [<a
moz-do-not-send="true"
href="mailto:kroberts@redhat.com"
target="_blank">kroberts@redhat.com</a>]<br>
<b>Gesendet:</b> Mittwoch, 24. Oktober
2012 16:34<br>
<b>An:</b> Dennis Böck<br>
<b>Cc:</b> <a moz-do-not-send="true"
href="mailto:users@oVirt.org"
target="_blank">users@oVirt.org</a><br>
<b>Betreff:</b> Re: [Users]
engine-iso-uploader problem</span></p>
</div>
<div>
<div>
<p style="MARGIN-BOTTOM: 12pt"
class="MsoNormal">Can you please
elaborate on the 'insecure flag'?
What exactly are you referring to?</p>
<div style="TEXT-ALIGN: center"
class="MsoNormal" align="center">
<hr id="zwchr" size="2" width="100%"
align="center">
</div>
<blockquote style="BORDER-BOTTOM: medium
none; BORDER-LEFT: #1010ff 1.5pt
solid; PADDING-BOTTOM: 0cm;
MARGIN-TOP: 5pt; PADDING-LEFT: 4pt;
PADDING-RIGHT: 0cm; MARGIN-BOTTOM:
5pt; MARGIN-LEFT: 3.75pt; BORDER-TOP:
medium none; BORDER-RIGHT: medium
none; PADDING-TOP: 0cm">
<p style="MARGIN-BOTTOM: 12pt"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Helvetica','sans-serif'">From:
</span></b><span
style="FONT-FAMILY:
'Helvetica','sans-serif'">"Dennis
Böck" <a moz-do-not-send="true"
href="mailto:dennis@webdienstleistungen.com"
target="_blank">
<dennis@webdienstleistungen.com></a><br>
<b>To: </b><a
moz-do-not-send="true"
href="mailto:users@oVirt.org"
target="_blank">"users@oVirt.org"</a>
<a moz-do-not-send="true"
href="mailto:users@ovirt.org"
target="_blank"><users@ovirt.org></a><br>
<b>Sent: </b>Wednesday, October
24, 2012 10:26:32 AM<br>
<b>Subject: </b>[Users]
engine-iso-uploader problem</span></p>
<div>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">Hi
Keith/Tobias,</span></p>
<div>
<div>
<div>
<div>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">how can
I set the "insecure
flag"?</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">The
engine-iso-uploader tool
doesn't have such a
parameter.</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">Best
regards</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">Dennis</span></p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-FAMILY:
'Tahoma','sans-serif';
FONT-SIZE: 10pt">P.S.: I
hope this e-mail goes to
the "[Users]
engine-iso-uploader
problem"-thread - I have
no idea how to do it
else.</span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Helvetica','sans-serif'"><br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@ovirt.org"
target="_blank">Users@ovirt.org</a><br>
<a moz-do-not-send="true"
href="http://lists.ovirt.org/mailman/listinfo/users"
target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a></span></p>
</blockquote>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>