<div dir="ltr"><div><div><div><div><div><div>Dear Friends,<br></div><br><br>I am trying to configure neutron. When i try the "neutron agent-list" command, this error shows " Authentication required"<br>
</div>This is the result of "neutron agent-list --debug"<br><br><br><span style="font-family:comic sans ms,sans-serif">Authentication required<br><span style class="">Traceback</span> (most recent call last):<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/shell.<span style class="">py</span>", line 517, in run_<span style class="">subcommand</span><br> return run_command(<span style class="">cmd</span>, <span style class="">cmd</span>_parser, sub_<span style class="">argv</span>)<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/shell.<span style class="">py</span>", line 78, in run_command<br> return <span style class="">cmd</span>.run(known_<span style class="">args</span>)<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/common/command.<span style class="">py</span>", line 35, in run<br> return super(<span style class="">OpenStackCommand</span>, self).run(parsed_<span style class="">args</span>)<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/cliff/display.<span style class="">py</span>", line 84, in run<br> column_names, data = self.take_action(parsed_<span style class="">args</span>)<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/common/command.<span style class="">py</span>", line 41, in take_action<br> return self.get_data(parsed_<span style class="">args</span>)<br>
File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/neutron/v2_0/__<span style class="">init</span>__.<span style class="">py</span>", line 586, in get_data<br>
data = self.retrieve_list(parsed_<span style class="">args</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/neutron/v2_0/__<span style class="">init</span>__.<span style class="">py</span>", line 555, in retrieve_list<br>
data = self.call_server(neutron_client, search_opts, parsed_<span style class="">args</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/neutron/v2_0/__<span style class="">init</span>__.<span style class="">py</span>", line 527, in call_server<br>
data = obj_<span style class="">lister</span>(**search_opts)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/v2_0/client.<span style class="">py</span>", line 108, in with_<span style class="">params</span><br>
<span style class="">ret</span> = self.function(instance, *<span style class="">args</span>, **<span style class="">kwargs</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/v2_0/client.<span style class="">py</span>", line 767, in list_agents<br>
return self.get(self.agents_path, <span style class="">params</span>=_<span style class="">params</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/v2_0/client.<span style class="">py</span>", line 1183, in get<br>
headers=headers, <span style class="">params</span>=<span style class="">params</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/v2_0/client.<span style class="">py</span>", line 1168, in retry_request<br>
headers=headers, <span style class="">params</span>=<span style class="">params</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/v2_0/client.<span style class="">py</span>", line 1103, in do_request<br>
resp, <span style class="">replybody</span> = self.<span style class="">httpclient</span>.do_request(action, method, body=body)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/client.<span style class="">py</span>", line 192, in do_request<br>
self.endpoint_<span style class="">url</span> + <span style class="">url</span>, method, **<span style class="">kwargs</span>)<br> File "/<span style class="">usr</span>/lib/python2.7/dist-packages/<span style class="">neutronclient</span>/client.<span style class="">py</span>", line 156, in _cs_request<br>
raise exceptions.Unauthorized(message=body)<br>Unauthorized: Authentication required</span><br><br><br><br><br></div>And here is the open.sh file<br><br>export OS_SERVICE_TOKEN=<span style class="">openstack</span><br>
export OS_SERVICE_ENDPOINT=<a href="http://controller:35357/v2.0">http://controller:35357/v2.0</a><br>export OS_<span style class="">USERNAME</span>=admin<br>export OS_PASSWORD=admin<br>export OS_TENANT_NAME=admin<br>export OS_<span style class="">AUTH</span>_URL=<a href="http://controller:35357/v2.0">http://controller:35357/v2.0</a><br>
<br></div><br><br>My keystone <span style class="">auth</span> field is <br><br>[keystone_<span style class="">authtoken</span>]<br><span style class="">auth</span>_host = controller<br><span style class="">auth</span>_port = 35357<br>
<span style class="">auth</span>_protocol = http<br>admin_tenant_name = service<br>admin_user = neutron<br>admin_password = neutron<br>signing_<span style class="">dir</span> = $state_path/keystone-signing<br><br><br><br>
</div>any help would be appreciated.<br></div>sincerely,<br> <span style class="">ghassen</span> <span style class="">cheniour</span><br><div><div><div><br><div><br></div></div></div></div></div>