keystone authentication failing in devstack with single node setup using Neutron

asked 2014-07-02 11:36:23 -0500

anant gravatar image

updated 2014-07-02 21:41:27 -0500


I have a single node devstack setup with two interfaces eth0 and eth1. I am running all the services on eth0 (HOST_IP) and using eth1 nowhere, though eth1 is connected to another network. When I try to boot an instance, the Neutronclient fails with authentication error and I can see from the log files that the username and password are becoming null somehow. What could be going wrong?

My local.conf file:





HOST_IP= FLAT_INTERFACE=eth0 FIXED_RANGE= NETWORK_GATEWAY= FIXED_NETWORK_SIZE=254 export no_proxy=,localhost,,::1,10.0.1.*


disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service neutron enable_service heat,h-api,h-api-cfn,h-api-cw,h-eng enable_service tempest

Q_PLUGIN=ml2 TENANT_TUNNEL_RANGES=50:100 ENABLE_TENANT_TUNNELS=True Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=gre) Q_AGENT_EXTRA_OVS_OPTS=(tenant_network_type=gre) Q_SRV_EXTRA_OPTS=(tenant_network_type=gre)



I also see the following message after is run:

You are using Q_AGENT_EXTRA_AGENT_OPTS to pass configuration into /etc/neutron/neutron.conf. Please convert that configuration in localrc to a /etc/neutron/neutron.conf section in local.conf: Q_AGENT_EXTRA_AGENT_OPTS will be removed early in the 'K' development cycle

[[post-config|/$Q_PLUGIN_CONF_FILE]] [DEFAULT]

tunnel_type=gre tunnel_types=gre

IS the Neutron configuration missing something?

However, I have the following error in my log file (nova compute log): 2014-07-02 21:09:24.664 2041 DEBUG neutronclient.client [-] REQ: curl -i http://localhost:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": null, "passwordCredentials": …{"username": null, "password": null}}}' http_log_req /opt/stack/python-neutronclient/neutronclient/common/

2014-07-02 21:09:24.665 2041 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): localhost

2014-07-02 21:09:24.671 2041 DEBUG urllib3.connectionpool [-] Setting read timeout to None _make_request /usr/lib/python2.7/dist-packages/urllib3/

2014-07-02 21:09:24.678 2041 DEBUG urllib3.connectionpool [-] "POST /v2.0/tokens HTTP/1.1" 400 101 _make_request /usr/lib/python2.7/dist-packages/urllib3/

2014-07-02 21:09:24.690 2041 DEBUG neutronclient.client [-] RESP:400 CaseInsensitiveDict({'date': 'Wed, 02 Jul 2014 15:39:24 GMT', 'vary': 'X-Auth-Token', 'content-length': '101', 'content-type': 'application/json'}) …{"error": {"message": "object of type 'NoneType' has no len()", "code": 400, "title": "Bad Request"}} http_log_resp /opt/stack/python-neutronclient/neutronclient/common/

2014-07-02 21:09:24.691 2041 ERROR [-] [instance: 1192cfab-d4cd-468d-87e1-a195534e02ba] Neutron error creating port on network f423c061-7a3d-4c90-8c5f-34fa294a3882

2014-07-02 21:09:24.691 2041 TRACE [instance: 1192cfab-d4cd-468d-87e1-a195534e02ba] Traceback (most recent call last):

2014-07-02 21:09:24.691 2041 TRACE [instance: 1192cfab-d4cd-468d-87e1-a195534e02ba] File "/opt/stack/nova/nova/network/neutronv2/", line 178, in _create_port

2014-07-02 21:09:24.691 2041 TRACE [instance: 1192cfab-d4cd-468d-87e1-a195534e02ba] port_id = port_client.create_port ... (more)

edit retag flag offensive close merge delete