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

Hi,

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:

======================================================

[[local|localrc]]

DATABASE_PASSWORD=stackdb ADMIN_PASSWORD=nomoresecrete SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=thequickbrownfox RABBIT_PASSWORD=stackqueue

USE_SCREEN=False

HOST_IP=192.168.124.18 FLAT_INTERFACE=eth0 FIXED_RANGE=10.0.1.0/24 NETWORK_GATEWAY=10.0.1.1 FIXED_NETWORK_SIZE=254 export no_proxy=192.168.124.18,localhost,127.0.0.1,::1,10.0.1.*

LOGFILE=$DEST/logs/stack.sh.log VERBOSE=True LOGDAYS=2 LOG_COLOR=False SCREEN_LOGDIR=/opt/stack/logs

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)

APACHE_ENABLED_SERVICES+=keystone

=============================================================

I also see the following message after stack.sh 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/utils.py:175

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/connectionpool.py:375

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/connectionpool.py:415

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/utils.py:184

2014-07-02 21:09:24.691 2041 ERROR nova.network.neutronv2.api [-] [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 nova.network.neutronv2.api [instance: 1192cfab-d4cd-468d-87e1-a195534e02ba] Traceback (most recent call last):

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

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

edit retag flag offensive close merge delete