On 08/21/2014 06:00 PM, Denis Kirjanov wrote:
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
Not sure what application are you embedding the Python SDK into, but it
may well be that SELinux is denying it permission to create the socket
to the SELinux context of that application. Check the
/var/log/audit/audit.log file. If you see a related message there then
try to put SELinux in warning mode:
# setenforce 0
Then try again. If SELinux is blocking the operation then you will need
to adjust some SELinux boolean or the SELinux policy.
----- Исходное сообщение -----
От: "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.