mitaka neutron router-create, ext-list connection problems http://controller:9696/v2.0/routers.json

asked 2017-04-13 22:57:04 -0600

gossettf gravatar image

updated 2017-04-17 11:18:38 -0600

I've installed Mitaka per the installation guide -even partially integrated ODL where ODL can see the OpenStack vswitches (but can't create any network objects -for the same reason "Unable to establish to connection to http://controller:9696...") ...Any help or ideas on this problem would be most appreciated.

Trying many of the neutron router-create, ext-list and others ...I constantly get connection errors like...

gossettf@controller:~$ neutron ext-list 
Unable to establish connection to http://controller:9696/v2.0/extensions.json
gossettf@controller:~$  neutron router-create router1 
Unable to establish connection to http://controller:9696/v2.0/routers.json

etc...

In fact I can't even find a subdirectory on the machine referencing "v2.0" ...and the only reference I see on the controller to extensions.json is off my home directory i.e.

gossettf@controller:~$ sudo find / -name extensions.json -print 
/home/gossettf/.mozilla/firefox/txqc9jay.default/extensions.json

...and I do not see a process listening on 9696 -even though I have references to them in the .conf files per the mitaka installation references.

I have looked everywhere for possible problem sources -even uncommented the "bind_port = 9696" parameter in neutron.conf, rebuilt the data base, stopped/restarted the services ... and nothing seems to work. I cannot get a connection to port 9696 on the controller.

e.g.

gossettf@controller:~$ sudo /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \
>  --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
[sudo] password for gossettf: 
No handlers could be found for logger "oslo_config.cfg"
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  Running upgrade for neutron ...
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  OK
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  Running upgrade for neutron-fwaas ...
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  OK

gossettf@controller:~$ sudo service nova-api restart
nova-api stop/waiting
nova-api start/running, process 18880
gossettf@controller:~$ sudo service neutron-server restart
neutron-server stop/waiting
neutron-server start/running, process 19430
gossettf@controller:~$ sudo service neutron-linuxbridge-agent restart
neutron-linuxbridge-agent stop/waiting
neutron-linuxbridge-agent start/running, process 19705
gossettf@controller:~$ sudo service neutron-dhcp-agent restart
neutron-dhcp-agent stop/waiting
neutron-dhcp-agent start/running, process 20124
gossettf@controller:~$ sudo service neutron-metadata-agent restart
neutron-metadata-agent stop/waiting
neutron-metadata-agent start/running, process 20365
gossettf@controller:~$ sudo service neutron-l3-agent restart
neutron-l3-agent stop/waiting
neutron-l3-agent start/running, process 20631
gossettf@controller:~$ neutron ext-list
Unable to establish connection to http://controller:9696/v2.0/extensions.json
gossettf@controller:~$ sudo find / -name extensions.json -print 
/home/gossettf/.mozilla/firefox/txqc9jay.default/extensions.json
gossettf@controller:~$ sudo find / -name v2.0 -print 
gossettf@controller:~$ netstat -a | grep 9696
<NO OUTPUT....>

...Many thanks if you got this far reading this problem's details.

Problem details continue...

Unfortunately ...no solution after multiple rebuilds of Mitaka and even selfservice, provider networks successfully provisioned with Horizon/dashboard working. It seems that around the time I "Reset Neutron's ML2 ... (more)

edit retag flag offensive close merge delete

Comments

The neutron server process must listen on server controller, port 9696. If not, you can't connect to Neutron. Can you check if it is running at all (e.g. systemctl status neutron-server)? If not, find out why. If it runs, find out where it is listening, e.g. # netstat -lntp | grep neutron.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-14 00:32:24 -0600 )edit

By the way, don't expect to find a directory named "2.0" or "extension". A URL doesn't require any directories to exist.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-14 00:34:07 -0600 )edit

And another "by the way" - you should be root to restart services. You don't seem to be, and I am not sure what is happening when you run the restart commands.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-14 00:36:42 -0600 )edit

Thank you, Bernd! -I was restarting the services with the "sudo" prefix; should I be root to do this? -Also, yes, I have confirmed neutron-server is running -but, it doesn't seem to be listening on port 9696;"neutron-server start/running, process 20820"; netstat -lntp | grep neutron ...<no output="">

gossettf gravatar imagegossettf ( 2017-04-14 10:05:37 -0600 )edit

Ooops Sorry, I didn't see the sudo. It does make you root, so that's OK. Note, however, that you also need to be root to display some network information, so try sudo netstat -a.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-14 20:02:56 -0600 )edit