Neutron responds with invalid token
According to the openstack installation guide of liberty version in neutron part [1], I configured the [keystone_authtoken] section in "/etc/neutron/neutron.conf" file as follows:
[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = NEUTRON_PASS
The "NEUTRON_PASS
" is modified with the proper password. However, when I tried with neutron services, e.g. neutron net-list
, in the controller node, I got the following errors from "/var/log/neutron/server.log".
2015-12-23 11:26:52.609 31463 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400
2015-12-23 11:26:52.623 31463 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find id or name in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}
2015-12-23 11:26:52.623 31463 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Failed to fetch token data from identity server
Then, I modified the [keystone_authtoken] section in "/etc/neutron/neutron.conf" file as below:
auth_uri = http://controller:5000/v2.0
auth_url = http://controller:35357
identity_uri = http://controller:5000
project_domain_id = default
admin_tenant_name = service
admin_user = neutron
admin_password = NEUTRON_PASS
Now it seems Neutron is able to work and no error is logged. What could be the problem?
[1] http://docs.openstack.org/liberty/install-guide-rdo/neutron-controller-install-option2.html (http://docs.openstack.org/liberty/ins...)