neutron agent-list: Authentication required
Hi
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 http://10.107.0.139:35357/v2.0 -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": "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://controller.einfochips.com:9696/v2.0/agents.json -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 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 ...
Try once restarting rabbitmq server and neutron server
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 all neutron commands give auth issues. Role is admin.
@Janki ,Do the answer work for you?