Why does keystone not authenticate my neutron server? [closed]
Hello everybody. This is my first question here so I'm sorry if something is not formatted correctly. I installed and configured all Havana OpenStack entities on a single Ubuntu server machine just for testing purpose. The server machine runs nova-compute, nova-controller, keystone, glance and neutron. I correctly installed and used Keystone, Glance, Nova and Swift for a copule of month and now I'm trying to introduce Neutron for networking. I followed this guide http://docs.openstack.org/havana/install-guide/install/apt/content/ch_neutron.html using the ovs plugin with GRE encapsulation.
When I try the command neutron net-list i obtain:
enterAuthentication required
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command
return cmd.run(known_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run
return super(OpenStackCommand, self).run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action
return self.get_data(parsed_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 586, in get_data
data = self.retrieve_list(parsed_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 555, in retrieve_list
data = self.call_server(neutron_client, search_opts, parsed_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 527, in call_server
data = obj_lister(**search_opts)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 325, in list_networks
**_params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1197, in list
for r in self._pagination(collection, path, **params):
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1210, in _pagination
res = self.get(path, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1183, in get
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1168, in retry_request
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request
self.endpoint_url + url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request
raise exceptions.Unauthorized(message=body)
Unauthorized: Authentication required
I can use glance and nova client without any authentication issue, exporting admin username and password and tenantid in enrivonment variables, but the neutron client keeps on creating this problem. I tried with the auth_strategy=noauth in the file neutron.conf and it works but i would like to have a secure access to the neutron api.
Surfing through the log I found in /var/log/neutron ...
Hi, I am having the same issue; did you get it resolved? I can work around this by setting auth_strategy to 'noauth'. I still wonder why keystone would not authenticate neutron-server. Thanks.