Revision history [back]

click to hide/show revision 1
initial version

neutron auth failure

Hi, I'm setting up neutron in my lab, but I always get "authentication reuqired" error. from my controller or networker, I got: user1@compute2:~$ neutron ext-list Authentication required

from controller /var/log/keystone/admin.log, I can see: 2015-10-21 16:34:08.297 24046 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/dist-packages/keystone/middleware/

Then I did sniffer for the traffic, I can see first connection heading to 35357, request and get token. the second connection heading to 9696 port with CORRECT X-Auth-Token, but controller responded with "401 unauthorized". This confuses me very much: if there is X-Auth-Token, how comes keystone/admin.log complains "Auth token not in the request header"?

 GET /v2.0/extensions.json HTTP/1.1

Host: controller:9696

Connection: keep-alive

User-Agent: python-neutronclient

Accept-Encoding: gzip, deflate

Accept: application/json

X-Auth-Token: c95490f94eea4d2da5211aab0895e2cb

HTTP/1.1 401 Unauthorized

Www-Authenticate: Keystone uri='http://controller:35357'

Content-Type: text/plain

X-Openstack-Request-Id: req-03787e91-e308-46ae-b2af-8be6fafb69db

Content-Length: 23

Date: Wed, 21 Oct 2015 23:34:08 GMT

Connection: keep-alive

Authentication required

I can do "keystone user-list", nova service-list" without problem. where should I check for next step? Thanks!!!