Am 14. Juni 2010 22:57 schrieb Russell <russell...@gmail.com>:
> […]
> File "/usr/lib/python2.6/httplib.py", line 330, in __init__
> self.fp = sock.makefile('rb', 0)
> NotImplementedError: Cannot make file object of SSL.Connection
> Has anyone else gotten this, or have any idea what this is about?
It's due to something that changed between Python 2.5 and 2.6. I'll
have a look into it. Expect a patch.
Michael
This has been fixed in commit beba56ae8.
http://git.ganeti.org/?p=ganeti.git;a=commit;h=beba56ae8
Michael
Am 18. Juni 2010 19:08 schrieb Russell <russell...@gmail.com>:
> raise CertificateError("SSL issue: %s (%r)" % (err, err))
> rapi.client.CertificateError: SSL issue: (9, 'Bad file descriptor')
> (SysCallError(9, 'Bad file descriptor'))
I can reproduce this error (better backtrace below) and strongly
suspect this being related to the issues described in the commit
message of my fix. I'm working on improving OpenSSL integration, which
we'll also be able to use in the RAPI client, but I can't give any ETA
right now. You can use httplib2 as a work-around and decode the
results using simplejson, though you should make sure to enable
certificate verification (only available in Python 2.6 and above).
…
File "…", line 451, in _SendRequest
encoded_response_content = resp.read()
File "…/python2.6/socket.py", line 329, in read
data = self._sock.recv(rbufsize)
File "…/python2.6/httplib.py", line 538, in read
s = self.fp.read(amt)
File "…/python2.6/socket.py", line 353, in read
data = self._sock.recv(left)
OpenSSL.SSL.SysCallError: (9, 'Bad file descriptor')
Michael
Am 18. Juni 2010 20:48 schrieb Michael Hanselmann <han...@google.com>:
> Am 18. Juni 2010 19:08 schrieb Russell <russell...@gmail.com>:
>> raise CertificateError("SSL issue: %s (%r)" % (err, err))
>> rapi.client.CertificateError: SSL issue: (9, 'Bad file descriptor')
>> (SysCallError(9, 'Bad file descriptor'))
>
> I can reproduce this error (better backtrace below) and strongly
> suspect this being related to the issues described in the commit
> message of my fix. I'm working on improving OpenSSL integration, which
> we'll also be able to use in the RAPI client, but I can't give any ETA
> right now.
Ganeti 2.2 will have a RAPI client built on top of PycURL (commit
2a7c3583d5). It'll be distributed as part of Ganeti 2.2.0~beta1 and
add a new dependency, python-pycurl.
Michael