Ok, that was the SELinux problem.
Thanks!
----- Исходное сообщение -----
От: "Denis Kirjanov" <kda(a)itsirius.su>
Кому: "Juan Hernandez" <jhernand(a)redhat.com>
Копия: devel(a)ovirt.org
Отправленные: Четверг, 21 Август 2014 г 20:00:12
Тема: Re: [ovirt-devel] ovirtsdk.infrastructure.errors.ConnectionError
Thanks Juan,
Looks like the I can't create a socket... Interesting
The last lines are:
File "/usr/lib64/python2.6/site-packages/ovirtsdk/web/httpsconnection.py", line
40, in connect
sock = socket.create_connection((self.host, self.port), self.timeout)
File "/usr/lib64/python2.6/socket.py", line 567, in create_connection
raise error, msg
error: [Errno 13] Permission denied
----- Исходное сообщение -----
От: "Juan Hernandez" <jhernand(a)redhat.com>
Кому: "Denis Kirjanov" <kda(a)itsirius.su>
Копия: devel(a)ovirt.org
Отправленные: Четверг, 21 Август 2014 г 19:36:47
Тема: Re: [ovirt-devel] ovirtsdk.infrastructure.errors.ConnectionError
On 08/21/2014 04:51 PM, Denis Kirjanov wrote:
It's python SDK (embedded in C code), version 3.1
Edit the
/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py file
and add the following two lines right before line 169:
import traceback
traceback.print_exc()
That should print some additional information about the origin of the error.
----- Исходное сообщение -----
От: "Juan Hernandez" <jhernand(a)redhat.com>
Кому: "Denis Kirjanov" <kda(a)itsirius.su>, devel(a)ovirt.org
Отправленные: Четверг, 21 Август 2014 г 18:43:12
Тема: Re: [ovirt-devel] ovirtsdk.infrastructure.errors.ConnectionError
On 08/21/2014 04:36 PM, Denis Kirjanov wrote:
> I'm having problem connecting from terminal session (not X session)
> Everything works perfectly well from the X session.
>
> One of my pam modules connects to vm manager, but triggers the following error:
>
> File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py",
line 169, in __doRequest
> raise ConnectionError, str(e)
> ovirtsdk.infrastructure.errors.ConnectionError: [ERROR]::Connection failure, [Errno
13] Permission denied
>
> I can't figure out what the reason is
>
Are you using only the Python SDK or also the CLI? What versions?
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
_______________________________________________
Devel mailing list
Devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel