Traceback (most recent call last):
  File "test.py", line 2, in <module>
    api = API(url='http://ovirt.local/api', username='admin@internal', password='letmein!')
  File "/usr/lib/python2.7/site-packages/ovirtsdk/api.py", line 118, in __init__
    url='/api'
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 199, in request
    noParse=noParse)
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 261, in __doRequest
    raise ConnectionError, str(e)
ovirtsdk.infrastructure.errors.ConnectionError: [ERROR]::oVirt API connection failure, [Errno -2] Name or service not known



On Thu, Mar 21, 2013 at 6:02 PM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
Can you try running the following 2 lines with python changing the password and the url with your values?


>>> from ovirtsdk.api import API
>>> api = API(url='http://ovirt.local/api', username='admin@internal', password='*******)

and paste the output?


Il 21/03/2013 16:43, Yuval M ha scritto:
doesn't work.

[wil@bufferoverflow ~]$ sudo ls -la /etc/pki/ovirt-engine/ca.pem
ls: cannot access /etc/pki/ovirt-engine/ca.pem: No such file or directory
[wil@bufferoverflow ~]$ sudo engine-iso-uploader -v --nossl --insecure list
Please provide the REST API username for oVirt Engine (CTRL+D to abort): admin@internal
Please provide the REST API password for the admin@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?

SSL is disabled in my setup so it should work via HTTP and not HTTPS.

Yuval Meir


On Thu, Mar 21, 2013 at 4:40 PM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
Hi,
Can you try to execute the following command?
$ sudo ls -la /etc/pki/ovirt-engine/ca.pem

Also if it seems strange it need ca.pem without ssl.

Can you try also:
$ sudo engine-iso-uploader -v --nossl --insecure list

--
Sandro


Il 21/03/2013 15:20, Yuval M ha scritto:
Hi,

I'm trying to use engine-iso-uploader to add ISO images to my ISO storage domain. (Ovirt 3.2 on Fedora 18)

$ sudo engine-iso-uploader -v --nossl list
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: Problem connecting to the REST API.  Is the service available and does the CA certificate exist?

$ ls -la /etc/pki/ovirt-engine/ca.pem
ls: cannot access /etc/pki/ovirt-engine/ca.pem: No such file or directory

$ cat /var/log/ovirt-engine/engine-iso-uploader.log
2013-03-21 15:42:04::ERROR::engine-iso-uploader::455::root:: Problem connecting to the REST API.  Is the service available and does the CA certificate exist?

-------------

same results also without the --nossl flag.

any insight?

Thanks,

Yuval Meir



_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users