Ask Your Question
0

Neutron Failing to Authenticate - "Authentication required" [closed]

asked 2015-07-29 07:25:45 -0500

MrJamesK gravatar image

Neutron failing to authenticate properly on Kilo (Ubuntu 14.04).

Here are the env variables

export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_AUTH_URL=http://corp-openstack01:35357/v3
export OS_AUTH_TYPE=password
export OS_PASSWORD=supersecret
export OS_REGION_NAME=RegionOne

Contents of neutron configuration file (/etc/neutron/neutron.conf):

[DEFAULT]

verbose = True

auth_strategy = keystone

core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True

notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://corp-openstack01:8774/v2

rpc_backend=rabbit

[database]

connection = mysql://user:supersecret@corp-openstack01/neutron

[oslo_messaging_rabbit]
rabbit_host = corp-openstack01
rabbit_userid = openstack
rabbit_password = supersecret

[keystone_authtoken]
auth_uri = http://corp-openstack01:5000/v2.0
auth_url = http://corp-openstack01:35357
auth_plugin = password
project_domain_id = default
user_domain _id = default
project_name = service
username = neutron
password = supersecret

[nova]
auth_url = http://corp-openstack01:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = nova
password = supersecret

Output of neutron ext-list:

root@corp-openstack01:~# neutron ext-list
Authentication required

Output of neutron ext-list --debug:

root@corp-openstack01:~# neutron ext-list --debug
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://corp-openstack01:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 256 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 29 Jul 2015 12:11:03 GMT x-openstack-request-id: req-7b08fc27-91f9-4b9f-834f-1b5556e9ffe1 content-type: application/json x-distribution: Ubuntu 
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://corp-openstack01:35357/v3/", "rel": "self"}]}}

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: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: neutronclient.neutron.v2_0.extension.ListExt get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, quote_mode='nonnumeric', request_format='json', show_details=False))
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://corp-openstack01:35357/v3/auth/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://corp-openstack01:9696/v2.0/extensions.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}64b22c5bfd3fd93414227f44ee852225d73ea900"
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to http://corp-openstack01:35357/v3/auth/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/lib/python2.7/dist-packages/neutronclient/shell.py", line 731, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 97, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.7/dist-packages/neutronclient/neutron ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by MrJamesK
close date 2015-07-29 09:43:53.436059

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-29 09:43:20 -0500

MrJamesK gravatar image

Found the error, there was a space on the "user_domain_id = default" line.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-07-29 07:21:46 -0500

Seen: 3,466 times

Last updated: Jul 29 '15