[Bug 1839488] [NEW] python3-eventlet SSLWantReadError nova neutron glance

sutefun 1839488 at bugs.launchpad.net
Thu Aug 8 14:16:25 UTC 2019


Public bug reported:

Hello,

when I configure openstack(stein) nova, neutron or glance with SSL using
the python3-eventlet way, I get

SSLWantReadError errors.

Ubuntu 18.04.3 LTS
Python 3.6.8 (default, Jan 14 2019, 11:02:34)

Package: python3-eventlet
Version: 0.24.1-0ubuntu3~cloud0
APT-Sources: http://nims.desy.de/extra/ubuntu-cloud bionic-updates/stein/main amd64

I discovered this bug:

https://bugs.launchpad.net/cloud-archive/+bug/1834565

and updated the package via stein-proposed repository but the error is
still there.


Package: python3-eventlet
Version: 0.24.1-0ubuntu3.1~cloud0
APT-Sources: http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/stein/main amd64 Packages

I think the problem is described here:

https://review.opendev.org/#/c/626952/


What worked for me was the patch from here:

https://www.bountysource.com/issues/32684217-using-both-eventlet-
monkey_patch-and-eventlet-wsgi-server-together-with-ssl-fails-with-ssl-
sslwantreaderror

pip install
https://github.com/eventlet/eventlet/archive/339c7ad4eaa4766ac8135fd13eed3adeaa43b276.zip


Error:
Aug  8 15:14:56 glance02 glance-api[509]: Traceback (most recent call last):
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 461, in fire_timers
Aug  8 15:14:56 glance02 glance-api[509]:     timer()
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/hubs/timer.py", line 59, in __call__
Aug  8 15:14:56 glance02 glance-api[509]:     cb(*args, **kw)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 219, in main
Aug  8 15:14:56 glance02 glance-api[509]:     result = function(*args, **kwargs)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 789, in process_request
Aug  8 15:14:56 glance02 glance-api[509]:     proto.__init__(conn_state, self)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 343, in __init__
Aug  8 15:14:56 glance02 glance-api[509]:     self.handle()
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 376, in handle
Aug  8 15:14:56 glance02 glance-api[509]:     self.handle_one_request()
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 405, in handle_one_request
Aug  8 15:14:56 glance02 glance-api[509]:     self.raw_requestline = self._read_request_line()
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 388, in _read_request_line
Aug  8 15:14:56 glance02 glance-api[509]:     return self.rfile.readline(self.server.url_length_limit)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/socket.py", line 586, in readinto
Aug  8 15:14:56 glance02 glance-api[509]:     return self._sock.recv_into(b)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 243, in recv_into
Aug  8 15:14:56 glance02 glance-api[509]:     return self._base_recv(nbytes, flags, into=True, buffer_=buffer)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 258, in _base_recv
Aug  8 15:14:56 glance02 glance-api[509]:     read = self.read(nbytes, buffer_)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 178, in read
Aug  8 15:14:56 glance02 glance-api[509]:     super(GreenSSLSocket, self).read, *args, **kwargs)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 148, in _call_trampolining
Aug  8 15:14:56 glance02 glance-api[509]:     return func(*a, **kw)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/ssl.py", line 874, in read
Aug  8 15:14:56 glance02 glance-api[509]:     return self._sslobj.read(len, buffer)
Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/ssl.py", line 631, in read
Aug  8 15:14:56 glance02 glance-api[509]:     v = self._sslobj.read(len, buffer)
Aug  8 15:14:56 glance02 glance-api[509]: ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2305)


Greets

** Affects: cloud-archive
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1839488

Title:
  python3-eventlet SSLWantReadError nova neutron glance

Status in Ubuntu Cloud Archive:
  New

Bug description:
  Hello,

  when I configure openstack(stein) nova, neutron or glance with SSL
  using the python3-eventlet way, I get

  SSLWantReadError errors.

  Ubuntu 18.04.3 LTS
  Python 3.6.8 (default, Jan 14 2019, 11:02:34)

  Package: python3-eventlet
  Version: 0.24.1-0ubuntu3~cloud0
  APT-Sources: http://nims.desy.de/extra/ubuntu-cloud bionic-updates/stein/main amd64

  I discovered this bug:

  https://bugs.launchpad.net/cloud-archive/+bug/1834565

  and updated the package via stein-proposed repository but the error is
  still there.

  
  Package: python3-eventlet
  Version: 0.24.1-0ubuntu3.1~cloud0
  APT-Sources: http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/stein/main amd64 Packages

  I think the problem is described here:

  https://review.opendev.org/#/c/626952/

  
  What worked for me was the patch from here:

  https://www.bountysource.com/issues/32684217-using-both-eventlet-
  monkey_patch-and-eventlet-wsgi-server-together-with-ssl-fails-with-
  ssl-sslwantreaderror

  pip install
  https://github.com/eventlet/eventlet/archive/339c7ad4eaa4766ac8135fd13eed3adeaa43b276.zip


  
  Error:
  Aug  8 15:14:56 glance02 glance-api[509]: Traceback (most recent call last):
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 461, in fire_timers
  Aug  8 15:14:56 glance02 glance-api[509]:     timer()
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/hubs/timer.py", line 59, in __call__
  Aug  8 15:14:56 glance02 glance-api[509]:     cb(*args, **kw)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 219, in main
  Aug  8 15:14:56 glance02 glance-api[509]:     result = function(*args, **kwargs)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 789, in process_request
  Aug  8 15:14:56 glance02 glance-api[509]:     proto.__init__(conn_state, self)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 343, in __init__
  Aug  8 15:14:56 glance02 glance-api[509]:     self.handle()
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 376, in handle
  Aug  8 15:14:56 glance02 glance-api[509]:     self.handle_one_request()
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 405, in handle_one_request
  Aug  8 15:14:56 glance02 glance-api[509]:     self.raw_requestline = self._read_request_line()
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 388, in _read_request_line
  Aug  8 15:14:56 glance02 glance-api[509]:     return self.rfile.readline(self.server.url_length_limit)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/socket.py", line 586, in readinto
  Aug  8 15:14:56 glance02 glance-api[509]:     return self._sock.recv_into(b)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 243, in recv_into
  Aug  8 15:14:56 glance02 glance-api[509]:     return self._base_recv(nbytes, flags, into=True, buffer_=buffer)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 258, in _base_recv
  Aug  8 15:14:56 glance02 glance-api[509]:     read = self.read(nbytes, buffer_)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 178, in read
  Aug  8 15:14:56 glance02 glance-api[509]:     super(GreenSSLSocket, self).read, *args, **kwargs)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 148, in _call_trampolining
  Aug  8 15:14:56 glance02 glance-api[509]:     return func(*a, **kw)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/ssl.py", line 874, in read
  Aug  8 15:14:56 glance02 glance-api[509]:     return self._sslobj.read(len, buffer)
  Aug  8 15:14:56 glance02 glance-api[509]:   File "/usr/lib/python3.6/ssl.py", line 631, in read
  Aug  8 15:14:56 glance02 glance-api[509]:     v = self._sslobj.read(len, buffer)
  Aug  8 15:14:56 glance02 glance-api[509]: ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2305)

  
  Greets

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1839488/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list