[Openstack] neutron: Authentication required
cheniour ghassen
ghacheniour at gmail.com
Wed Mar 12 10:50:06 UTC 2014
Dear Friends,
I am trying to configure neutron. When i try the "neutron agent-list"
command, this error shows " Authentication required"
This is the result of "neutron agent-list --debug"
Authentication 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 767, in list_agents
return self.get(self.agents_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
And here is the open.sh file
export OS_SERVICE_TOKEN=openstack
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0
My keystone auth field is
[keystone_authtoken]
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron
signing_dir = $state_path/keystone-signing
any help would be appreciated.
sincerely,
ghassen cheniour
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140312/5aef1318/attachment.html>
More information about the Openstack
mailing list