# Problems running neutron net-list

UPDATE: tailing the neutron system.log while running the neutron agent-list command shows no errors. odd.

this has been very helpful - I found some errors in neutron.conf that I have corrected. The suggested curl test returns: root@3critical:~# curl http://192.168.1.103:9696 {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://192.168.1.103:9696/v2.0", "rel": "self"}]}]} and a check on the neutron host of the processes shows root@3critical:~# ps -ea | grep neutron 19802 ? 00:00:01 neutron-server 19812 ? 00:00:00 neutron-dhcp-ag 19817 ? 00:00:00 neutron-l3-agen 19822 ? 00:00:00 neutron-metadat 23491 ? 00:00:00 neutron-openvsw However, the neutron server.log shows warnings including 2014-04-10 08:51:11.343 19802 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint (this looks suspicious - checking the [keystone.authtoken] sections of the conf/ini files again) And the neutron net-list command still returns the error ERROR: neutronclient.shell Connection to neutron failed: Maximum attempts reached

Thanks. My system is three small servers - controller, compute and neutron hosts. Controller has keystone and is up. On the neutron host the core plugin is Ml2Plugin and the only service plugin is the L3RouterPlugin. Neutron host has three nic's.

After configuring a neutron host and restarting I attempted to list the networks and received an invalid values_spec error with the neutron shell. Details below. Received a similar error attempting to list the neutron agents.

neutron --debug -v net-list
.
.
.
ERROR: neutronclient.shell Connection to neutron failed: Maximum attempts reached
Traceback (most recent call last):
.
.
.
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1183, in get
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1175, in retry_request
raise exceptions.ConnectionFailed(reason=_("Maximum attempts reached"))
ConnectionFailed: Connection to neutron failed: Maximum attempts reached
DEBUG: neutronclient.shell clean_up ListNetwork
DEBUG: neutronclient.shell got an error: Connection to neutron failed: Maximum attempts reached

edit retag close merge delete

When you have a moment, please take the time to read the instructions on how to correctly format "preformatted" text (like command output). It makes the question much easier for people to read.

( 2014-04-10 07:54:47 -0600 )edit

I must be really slow - but I cannot seem to find those instructions .. do they show up if I try to post a new question? Sorry for bothering you with this.

( 2014-04-10 11:21:30 -0600 )edit

Sort by » oldest newest most voted

Why are you adding DEBUG to the command line? net-list doesn't take any parameters. Compare:

$neutron net-list +--------------------------------------+--------+---------------------... | id | name | subnets ... +--------------------------------------+--------+---------------------... | 3ff9b903-e921-4752-a26f-cba8f1433992 | net0 | cae5afad-217c-4e8b-8... | 93c8ddfc-7baa-4667-a01c-dfbdf5d47f15 | public | ffcca46d-b3df-42db-a... | 9c20f065-0e20-49f0-9a29-1dd531f32092 | net1 | 1bc2060b-2f97-40d4-a... +--------------------------------------+--------+---------------------...  With: $ neutron net-list DEBUG
Invalid values_specs DEBUG


This is true for all of the -list commands.

UPDATE

Your new question indicates a problem connecting to the Neutron server. Have you verified that it is running? Can you connect to it directly using, e.g., curl? You can test it like this:

\$ curl http://your.neutron.server:9696/


Which should response with something like:

{"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://localhost:9696/v2.0", "rel": "self"}]}]}


Are there any errors in your neutron log? That would typically be /var/log/neutron/server.log.

more

Thank-you. My error. But when I remove that from the command string, I still get the parser errors, for example: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv)

( 2014-04-09 20:43:40 -0600 )edit

do you find anything interesting inside neutron log? btw, how is your setup? is it in single node or multi node?

( 2014-04-10 09:30:22 -0600 )edit

I rebuilt the controller node and have cleared the error. In looking at the two builds, I believe that I forgot to install the novnc package on the controller - though I cannot confirm this. Controller and Neutron host are talking, agent list works, etc.

more