[Users] engine-iso-uploader problem

Keith Robertson kroberts at redhat.com
Wed Oct 31 16:31:44 UTC 2012


Dennis,

You're in the same spot as another user and, it could quite possibly be 
the cert.  However, I need additional information debug that.

I'm repeating my response from that other post [1]  and, I'd appreciate 
it if you gave the steps [1-7] a whirl.

Cheers,
Keith

[1]
On 10/31/2012 01:40 AM, Sheldon wrote:
> I make a domain name "ISO", Domain type is ISO, Storage Type is NFS, 
> Format is V1
>
> $ sudo engine-iso-uploader -v --iso-domain=ISO upload 
> Fedora-17-x86_64-DVD.iso
> [sudo] password for ovirt:
> Please provide the REST API username for oVirt Engine (CTRL+D to 
> abort): admin at internal
> Please provide the REST API password for the admin at internal oVirt 
> Engine user (CTRL+D to abort):
> ERROR: Problem connecting to the REST API.  Is the service available 
> and does the CA certificate exist?
> ERROR: 'NoneType' object is not iterable
> INFO: Use the -h option to see usage. 

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.

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]

Cheers,
Keith

[1] ERROR: 'NoneType' object is not iterable
[2] http://gerrit.ovirt.org/8954
[3]
Step 1: git clone http://gerrit.ovirt.org/p/ovirt-iso-uploader.git
Step 2: Cherry pick the patch...
git fetch git://gerrit.ovirt.org/ovirt-iso-uploader 
refs/changes/54/8954/2 && git cherry-pick FETCH_HEAD
Step 3: export APP_VERSION=3.0.0; export APP_RELEASE=1
Step 4: cd ovirt-iso-uploader
Step 5: make
Step 6: Notice the ovirt-iso-uploader*.rpm location in the STDOUT
Step 7: yum install /path/to/ovirt-iso-uploader*.rpm


On 10/31/2012 12:08 PM, Dennis Böck wrote:
>
> Here is the output with verbose option:
>
> [root at vdihost1 ovirt]# engine-iso-uploader upload -v -i 
> local-iso-share Fedora-17-x8
> Please provide the REST API username for oVirt Engine (CTRL+D to 
> abort): admin
> Please provide the REST API password for the admin oVirt Engine user 
> (CTRL+D to abort):
> ERROR: Unable to connect to REST API.  Reason: Unauthorized
> ERROR: 'NoneType' object is not iterable
> INFO: Use the -h option to see usage.
> DEBUG: Configuration:
> DEBUG: command: upload
> DEBUG: Traceback (most recent call last):
> DEBUG:   File "/bin/engine-iso-uploader", line 956, in <module>
> DEBUG:     isoup = ISOUploader(conf)
> DEBUG:   File "/bin/engine-iso-uploader", line 334, in __init__
> DEBUG:     self.upload_to_storage_domain()
> DEBUG:   File "/bin/engine-iso-uploader", line 690, in 
> upload_to_storage_domain
> DEBUG:     (id, address, path) = 
> self.get_host_and_path_from_ISO_domain(self.configuration.get('iso_domain'))
> DEBUG: TypeError: 'NoneType' object is not iterable
>
> ------------------------------------------------------------------------
> *Von:* Keith Robertson [kroberts at redhat.com]
> *Gesendet:* Dienstag, 30. Oktober 2012 17:20
> *An:* Dennis Böck
> *Cc:* users at ovirt.org
> *Betreff:* Re: AW: [Users] engine-iso-uploader problem
>
> Can you re-run with -v (verbose) and send me the output?
>
> On 10/30/2012 12:00 PM, Dennis Böck wrote:
>>
>> Thanks for the instructions how to build. I did it and installed the rpm.
>>
>> Now I get a new error message:
>>
>> [root at vdihost1 RPMS]# engine-iso-uploader upload -i local-iso-share 
>> /run/media/dennis/4F0B-18DE/ovirt/Fedora-17-x86_64-Live-Desktop.iso
>> Please provide the REST API username for oVirt Engine (CTRL+D to 
>> abort): admin
>> Please provide the REST API password for the admin oVirt Engine user 
>> (CTRL+D to abort):
>> ERROR: Unable to connect to REST API.  Reason: Unauthorized
>> ERROR: 'NoneType' object is not iterable
>> INFO: Use the -h option to see usage.
>>
>> I am sure, that I used the same password as I used for the webinterface.
>>
>> Any ideas?
>>
>> ------------------------------------------------------------------------
>> *Von:* users-bounces at ovirt.org [users-bounces at ovirt.org]" im Auftrag 
>> von "Keith Robertson [kroberts at redhat.com]
>> *Gesendet:* Mittwoch, 24. Oktober 2012 18:02
>> *An:* Dennis Böck
>> *Cc:* users at ovirt.org
>> *Betreff:* Re: [Users] engine-iso-uploader problem
>>
>> On 10/24/2012 11:43 AM, Dennis Böck wrote:
>>>
>>> Since I am not experienced in building software, I took 
>>> http://www.ovirt.org/releases/3.1/rpm/Fedora/17/noarch/ovirt-iso-uploader-3.1.0-0.git1841d9.fc17.noarch.rpm 
>>>
>>>
>>> But your e-mail sounded like that you can just set a parameter to 
>>> avoid the problem?
>>>
>>> Maybe I could avoid the problem, if there was another way for 
>>> installing VMS/bringing ISOs to VMs?
>>>
>>
>> It doesn't appear to be build yet.
>>
>> Step 1: git clone http://gerrit.ovirt.org/p/ovirt-iso-uploader.git
>> Step 2: export APP_VERSION=3.0.0; export APP_RELEASE=1
>> Step 3: cd ovirt-iso-uploader
>> Step 4: make
>> Step 5: Notice the ovirt-iso-uploader*.rpm location in the STDOUT
>> Step 6: yum install /path/to/ovirt-iso-uploader*.rpm
>>
>>> *Von:*Keith Robertson [mailto:kroberts at redhat.com]
>>> *Gesendet:* Mittwoch, 24. Oktober 2012 17:08
>>> *An:* Dennis Böck
>>> *Cc:* users at ovirt.org
>>> *Betreff:* Re: AW: [Users] engine-iso-uploader problem
>>>
>>> On 10/24/2012 10:56 AM, Dennis Böck wrote:
>>>
>>>     Obviously my e-mail wasn't added to the intendet thread:
>>>
>>>     http://lists.ovirt.org/pipermail/users/2012-September/003670.html
>>>
>>> Ah, that 'insecure flag'. That change should be merged.  Are you 
>>> still experiencing the issue with a recent build of the iso-uploader?
>>>
>>> http://gerrit.ovirt.org/#/c/7774/
>>>
>>> (How can I reply to a such a thread??)
>>>
>>> Thanks in advance
>>>
>>> Dennis
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *Von:*users-bounces at ovirt.org <mailto:users-bounces at ovirt.org> 
>>> [users-bounces at ovirt.org <mailto:users-bounces at ovirt.org>]" im 
>>> Auftrag von "Keith Robertson [kroberts at redhat.com 
>>> <mailto:kroberts at redhat.com>]
>>> *Gesendet:* Mittwoch, 24. Oktober 2012 16:34
>>> *An:* Dennis Böck
>>> *Cc:* users at oVirt.org <mailto:users at oVirt.org>
>>> *Betreff:* Re: [Users] engine-iso-uploader problem
>>>
>>> Can you please elaborate on the 'insecure flag'? What exactly are 
>>> you referring to?
>>>
>>> ------------------------------------------------------------------------
>>>
>>>     *From: *"Dennis Böck" <dennis at webdienstleistungen.com>
>>>     <mailto:dennis at webdienstleistungen.com>
>>>     *To: *"users at oVirt.org" <mailto:users at oVirt.org>
>>>     <users at ovirt.org> <mailto:users at ovirt.org>
>>>     *Sent: *Wednesday, October 24, 2012 10:26:32 AM
>>>     *Subject: *[Users] engine-iso-uploader problem
>>>
>>>     Hi Keith/Tobias,
>>>
>>>     how can I set the "insecure flag"?
>>>
>>>     The engine-iso-uploader tool doesn't have such a parameter.
>>>
>>>     Best regards
>>>
>>>     Dennis
>>>
>>>     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.
>>>
>>>
>>>     _______________________________________________
>>>     Users mailing list
>>>     Users at ovirt.org <mailto:Users at ovirt.org>
>>>     http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20121031/06b8f04e/attachment-0001.html>


More information about the Users mailing list