[Openstack] Neutron authentication error

Janki Chhatbar jankihchhatbar at gmail.com
Sat Apr 4 13:06:02 UTC 2015


Hi all

I have 3 node Icehouse non-devstack setup on Ubuntu 14.04. Everything was
working fine. I integrated it with ODL. After reverting back to just
OpenStack,  neutron APIs give auth errors.

$ neutron --debug agent-list
> DEBUG: keystoneclient.session REQ: curl -g -i -X GET
> http://10.107.0.139:35357/v2.0 -H "Accept: application/json" -H
> "User-Agent: python-keystoneclient"
> DEBUG: keystoneclient.session RESP: [200] content-length: 616 vary:
> X-Auth-Token connection: keep-alive date: Sat, 04 Apr 2015 13:01:48 GMT
> content-type: application/json x-distribution: Ubuntu
> RESP BODY: {"version": {"status": "stable", "updated":
> "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json",
> "type": "application/vnd.openstack.identity-v2.0+json"}, {"base":
> "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}],
> "id": "v2.0", "links": [{"href": "http://10.107.0.139:35357/v2.0/",
> "rel": "self"}, {"href": "
> http://docs.openstack.org/api/openstack-identity-service/2.0/content/",
> "type": "text/html", "rel": "describedby"}, {"href": "
> http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf",
> "type": "application/pdf", "rel": "describedby"}]}}
>
> DEBUG: stevedore.extension found extension EntryPoint.parse('table =
> cliff.formatters.table:TableFormatter')
> DEBUG: stevedore.extension found extension EntryPoint.parse('csv =
> cliff.formatters.commaseparated:CSVLister')
> DEBUG: neutronclient.neutron.v2_0.agent.ListAgent
> get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0,
> quote_mode='nonnumeric', request_format='json', show_details=False,
> sort_dir=[], sort_key=[]))
> DEBUG: keystoneclient.auth.identity.v2 Making authentication request to
> http://10.107.0.139:35357/v2.0/tokens
> DEBUG: keystoneclient.session REQ: curl -g -i -X GET
> http://10.107.0.139:9696/v2.0/agents.json -H "User-Agent:
> python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token:
> {SHA1}1e9e13c9f5065e44f23f304f0b8d03d2f528f8e5"
> DEBUG: keystoneclient.session RESP:
> DEBUG: keystoneclient.auth.identity.v2 Making authentication request to
> http://10.107.0.139:35357/v2.0/tokens
> DEBUG: keystoneclient.session RESP:
> DEBUG: neutronclient.v2_0.client Error message: Authentication required
> ERROR: neutronclient.shell Authentication required
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
> line 731, in run_subcommand
>     return run_command(cmd, cmd_parser, sub_argv)
>   File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
> line 97, in run_command
>     return cmd.run(known_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py",
> line 29, in run
>     return super(OpenStackCommand, self).run(parsed_args)
>   File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 91,
> in run
>     column_names, data = self.take_action(parsed_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py",
> line 35, in take_action
>     return self.get_data(parsed_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py",
> line 687, in get_data
>     data = self.retrieve_list(parsed_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py",
> line 650, in retrieve_list
>     data = self.call_server(neutron_client, search_opts, parsed_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py",
> line 622, in call_server
>     data = obj_lister(**search_opts)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 99, in with_params
>     ret = self.function(instance, *args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 1114, in list_agents
>     return self.get(self.agents_path, params=_params)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 290, in get
>     headers=headers, params=params)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 267, in retry_request
>     headers=headers, params=params)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 208, in do_request
>     self._handle_fault_response(status_code, replybody)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 182, in _handle_fault_response
>     exception_handler_v20(status_code, des_error_body)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 80, in exception_handler_v20
>     message=message)
> NeutronClientException: Authentication required
>

I have tried reinstalling keystone, restarting neutron-server, mysql
database, recreating neutron databases and end-points, reimaging full
neutron node but no success.

Any help would be very much appreciated.

Janki Chhatbar
M.Tech (Embedded Systems)
Nirma University
(+91) 9409239106
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150404/1c120b58/attachment.html>


More information about the Openstack mailing list