network related command returning SSL Error

Bug #1671138 reported by Arnaud
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Invalid
Undecided
Unassigned

Bug Description

I'm currently installing openstack following the tutorial for ocata on ubuntu-server.
After installing and configuring neutron on the controller and the first compute-node, any command related to the network that I tried failed and returned an SSL Error.

openstack extension list --network, openstack network list and openstack network agent list all return :
'unicode' object has no attribute 'get'

openstack extension list works fine, same for openstack user/service/project list

This is the tail of /var/log/neutron/neutron-server.log

2017-03-08 15:59:40.863 3366 INFO neutron.wsgi [-] 10.0.4.10 - - [08/Mar/2017 15:59:40] "GET / HTTP/1.1" 200 272 0.000515
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors [-] An error occurred during processing the request: GET /v2.0/agents HTTP/1.0
Accept: application/json
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Type: text/plain
Host: cloudcontroller:9696
User-Agent: openstacksdk/0.9.13 keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12
X-Auth-Token: *****
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors Traceback (most recent call last):
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/oslo_middleware/catch_errors.py", line 41, in __call__
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors response = req.get_response(self.application)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors application, catch_exc_info=False)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors app_iter = application(self.environ, start_response)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors resp = self.call_func(req, *args, **self.kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return self.func(req, *args, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors response = self.process_request(req)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 623, in process_request
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors resp = super(AuthProtocol, self).process_request(request)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors allow_expired=allow_expired)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 435, in _do_fetch_token
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors data = self.fetch_token(token, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 762, in fetch_token
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors allow_expired=allow_expired)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/_identity.py", line 217, in verify_token
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors auth_ref = self._request_strategy.verify_token(
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/_identity.py", line 168, in _request_strategy
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors strategy_class = self._get_strategy_class()
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/_identity.py", line 190, in _get_strategy_class
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors if self._adapter.get_endpoint(version=klass.AUTH_VERSION):
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 176, in get_endpoint
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return self.session.get_endpoint(auth or self.auth, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 856, in get_endpoint
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return auth.get_endpoint(self, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/_auth.py", line 118, in get_endpoint
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors authenticated=False)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return wrapped(*args, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/discover.py", line 140, in __init__
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors authenticated=authenticated)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return wrapped(*args, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/discover.py", line 40, in get_version_data
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors resp = session.get(url, headers=headers, authenticated=authenticated)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 758, in get
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return self.request(url, 'GET', **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors return wrapped(*args, **kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 616, in request
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors resp = send(**kwargs)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 678, in _send_request
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors raise exceptions.SSLError(msg)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors SSLError: SSL exception connecting to https://127.0.0.1:35357: ("bad handshake: Error([('SSL routines', 'SSL23_GET_SERVER_HELLO', 'unknown protocol')],)",)
2017-03-08 15:59:40.875 3366 ERROR oslo_middleware.catch_errors
2017-03-08 15:59:40.876 3366 INFO neutron.wsgi [-] 10.0.4.10 - - [08/Mar/2017 15:59:40] "GET /v2.0/agents HTTP/1.1" 500 419 0.010823

affects: openstack-i18n → openstack-manuals
Arnaud (7r17r1)
tags: added: neutron
Revision history for this message
ianeta hutchinson (iphutch) wrote :

Hi! For troubleshooting or support issues, please use the following resources:

 - Ask OpenStack: http://ask.openstack.org
 - The mailing list: http://lists.openstack.org
 - IRC: 'openstack' channel on Freenode

Changed in openstack-manuals:
status: New → Invalid
Revision history for this message
Arnaud (7r17r1) wrote :

So, after some tedious investigation, I finally found a way to solve this issue. But even though it's working now, I feel this is kind of an odd solution
Anyway, after looking at the traffic using tcpdump, I realized there was a strange tra

Revision history for this message
Arnaud (7r17r1) wrote :

Can't edit an answer ? x)
Anyway, sorry about that....

There was a strange frame to which the server answered "SSL error", but the frame was not an SSL request, I don't really know what it was
There was no reason for the server to answer SSL request since there were no SSL or https option anywhere in all my config files related to openstack

The issue was resolved by editing neutron.conf and adding :

identity_uri = http://localhost:35357
admin_user = admin
admin_password ADMIN_PASSWORD
admin_tenant_name = admin
auth_type = password

not sure why it needed that though, since neutron is supposed to have admin credential from openstack roles

I still think that it's either a bug or a lack of information in the tutorial

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.