'AWSHTTPSConnection' object has no attribute 'ssl_context'

Bug #1758032 reported by Gregorio Corral Torres
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnocchi (Ubuntu)
New
Undecided
Unassigned

Bug Description

Gnocchi shows the following error 'AWSHTTPSConnection' object has no attribute 'ssl_context'' in gnocchi_error.log

ii python-gnocchi 3.1.9-0ubuntu1~cloud0 all Metric as a Service - Python 2.x
ii python-openssl 16.2.0-1~cloud0 all Python 2 wrapper around the OpenSSL library

 2018-03-22 12:17:58.663441 mod_wsgi (pid=18370): Exception occurred processing WSGI script '/usr/lib/python2.7/dist-packages/gnocchi/rest/app.wsgi'.
2018-03-22 12:17:58.663464 Traceback (most recent call last):
2018-03-22 12:17:58.663476 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 131, in __call__
2018-03-22 12:17:58.663493 resp = self.call_func(req, *args, **self.kwargs)
2018-03-22 12:17:58.663500 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 196, in call_func
2018-03-22 12:17:58.663510 return self.func(req, *args, **kwargs)
...
2018-03-22 12:17:58.664019 File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 846, in _validate_conn
2018-03-22 12:17:58.664027 conn.connect()
2018-03-22 12:17:58.664032 File "/usr/lib/python2.7/dist-packages/urllib3/connection.py", line 311, in connect
2018-03-22 12:17:58.664039 if self.ssl_context is None:
2018-03-22 12:17:58.664050 AttributeError: 'AWSHTTPSConnection' object has no attribute 'ssl_context'

Revision history for this message
Gregorio Corral Torres (gregorio.corral) wrote :

 Following the suggestion of
 https://stackoverflow.com/questions/45821085/awshttpsconnection-object-has-no-attribute-ssl-context

 I downgraded resquests python package to 2.12 using pip:

 sudo pip install requests==2.12

 pip show requests
 Name: requests
 Version: 2.12.0
 Summary: Python HTTP for Humans.
 Home-page: http://python-requests.org
 Author: Kenneth Reitz
 Author-email: <email address hidden>
 License: Apache 2.0
 Location: /usr/local/lib/python2.7/dist-packages
 Requires:

It seems a workaround bat not a the best solution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.