RuntimeError: osrandom engine already registered
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Liberty |
Fix Released
|
High
|
Unassigned | ||
python-cryptography (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Horizon errors with 500 Internal Server Error.
The apache error.log logs an exception "RuntimeError: osrandom engine already registered", cf. traceback below. We need to restart apache2 to recover.
This happens in a non-deterministic way, ie. Horizon will function correctly for some time after throwing this error.
Versions:
python-
apache2 2.4.7-1ubuntu4.10
libapache2-mod-wsgi 3.4-4ubuntu2.
Traceback:
[Mon Jul 11 20:16:46.373640 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] mod_wsgi (pid=2045796): Exception occurred processing WSGI script '/usr/share/
[Mon Jul 11 20:16:46.373681 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] Traceback (most recent call last):
[Mon Jul 11 20:16:46.373697 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.390398 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] self.load_
[Mon Jul 11 20:16:46.390420 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.390515 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] mw_instance = mw_class()
[Mon Jul 11 20:16:46.390525 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.394033 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] for url_pattern in get_resolver(
[Mon Jul 11 20:16:46.394052 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.394500 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] patterns = getattr(
[Mon Jul 11 20:16:46.394516 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.394533 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] self._urlconf_
[Mon Jul 11 20:16:46.394540 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.410602 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] __import__(name)
[Mon Jul 11 20:16:46.410618 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/share/
[Mon Jul 11 20:16:46.416197 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] url(r'^api/', include(
[Mon Jul 11 20:16:46.416219 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.422868 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] urlconf_module = import_
[Mon Jul 11 20:16:46.422882 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.422899 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] __import__(name)
[Mon Jul 11 20:16:46.422905 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/share/
[Mon Jul 11 20:16:46.432789 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from openstack_
[Mon Jul 11 20:16:46.432803 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/share/
[Mon Jul 11 20:16:46.440814 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from cinderclient.
[Mon Jul 11 20:16:46.440829 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.453863 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from cinderclient.
[Mon Jul 11 20:16:46.453887 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.457850 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from cinderclient import client
[Mon Jul 11 20:16:46.457864 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.461033 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from eventlet import sleep
[Mon Jul 11 20:16:46.461048 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.468784 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from eventlet import convenience
[Mon Jul 11 20:16:46.468810 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.473247 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from eventlet import greenio
[Mon Jul 11 20:16:46.473265 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.475382 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from eventlet.
[Mon Jul 11 20:16:46.475406 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.476165 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from OpenSSL import SSL
[Mon Jul 11 20:16:46.476185 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.482761 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from OpenSSL import rand, crypto, SSL
[Mon Jul 11 20:16:46.482781 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.490827 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] from OpenSSL._util import (
[Mon Jul 11 20:16:46.490842 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.497707 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] binding = Binding()
[Mon Jul 11 20:16:46.497725 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.505876 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] self._ensure_
[Mon Jul 11 20:16:46.505897 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.505922 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] cls._register_
[Mon Jul 11 20:16:46.505934 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] File "/usr/lib/
[Mon Jul 11 20:16:46.505954 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] raise RuntimeError(
[Mon Jul 11 20:16:46.505984 2016] [:error] [pid 2045796:tid 139828791035648] [remote 172.16.4.81:33908] RuntimeError: osrandom engine already registered
Changed in cloud-archive: | |
status: | New → Fix Released |
importance: | Undecided → High |
Changed in horizon: | |
status: | New → Invalid |
tags: |
added: verification-liberty-done removed: verification-liberty-needed |
Note this seems to come from python- cryptography, eg fixed
by fedora ca Jan/2016[0] and suse ca Oct/2015[1] -
this trusty/liberty install has:
python-cryptography (1.0.1- 1ubuntu1~ cloud1) trusty-liberty; urgency=medium
from Mon, 23 Nov 2015 17:40:42 +0000.
[0] https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1284148 /lists. opensuse. org/opensuse- commit/ 2015-10/ msg00881. html
[1] https:/