Ask Your Question

neutron agent-list: Authentication required

asked 2015-04-03 05:52:31 -0500

Janki gravatar image


I have 3 node OpenStack Icehouse non-devstack setup on Ubuntu 14.04. Everything was running fine. I had ODL Helium SR1.1integrated with it. After reverting back to only OpenStack (without ODL), neutron agent-list started giving authentication error.

$ neutron agent-list --debug
DEBUG: keystoneclient.session REQ: curl -g -i -X GET -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] date: Fri, 03 Apr 2015 10:30:50 GMT content-type: application/json content-length: 616 vary: X-Auth-Token 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://IP:35357/v2.0/", "rel": "self"}, {"href": "", "type": "text/html", "rel": "describedby"}, {"href": "", "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
DEBUG: keystoneclient.session REQ: curl -g -i -X GET -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}5a075819fe7297a7e0de8dc148e095179f6a73a6"
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to
DEBUG: keystoneclient.session RESP:
DEBUG: neutronclient.v2_0.client Error message: Authentication required
ERROR: Authentication required
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/", line 731, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/", line 97, in run_command
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/", line 687, in get_data
    data = self.retrieve_list(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/", 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/", line 622, in call_server
    data = obj_lister(**search_opts)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/", line 1114, in list_agents
    return self.get(self.agents_path, params=_params ...
edit retag flag offensive close merge delete


Try once restarting rabbitmq server and neutron server

Praveen N gravatar imagePraveen N ( 2015-04-03 09:05:17 -0500 )edit

can you confirm what environment variables are sourced, just make sure you are using a user with the admin role. try 'env | grep -i OS' to confirm. Do other neutron commands run successfully or just this particular one is causing auth issues.

omar-munoz gravatar imageomar-munoz ( 2015-04-03 14:36:06 -0500 )edit

@omar-munoz all neutron commands give auth issues. Role is admin.

$ env | grep -i OS
LESSCLOSE=/usr/bin/lesspipe %s %s
Janki gravatar imageJanki ( 2015-04-04 00:55:01 -0500 )edit

@Janki ,Do the answer work for you?

liaodalin19903 gravatar imageliaodalin19903 ( 2017-07-13 23:07:12 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-07 15:22:48 -0500

Posting this as an answer just for more room to type.

I just want to validate you are using the right endpoint to auth.

[root@node-1 ~]# keystone service-list | grep keystone | awk '{print $2}'
[root@node-1 ~]# keystone endpoint-list | grep a80f97d61fc6417cbae1fd6a23271d4e
| 2512c64b2e3a4262aaf15d2aa89ee9df | RegionOne |          |         |       | a80f97d61fc6417cbae1fd6a23271d4e |

Can you validate the password in the neutron.conf matches your nova.conf, update if needed.

[root@node-1 ~]# grep admin /etc/neutron/neutron.conf  | grep -v ^#
nova_admin_username =nova
nova_admin_tenant_id = 9bf5febb5da44db595e1238895c22740 
nova_admin_password =JVDLUXqK
nova_admin_auth_url =
admin_tenant_name = services
admin_user = neutron
admin_password = NgWTlrk5

[root@node-1 ~]# grep admin /etc/nova/nova.conf | grep -v ^#
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-04-03 05:52:31 -0500

Seen: 5,890 times

Last updated: Apr 07 '15