Ask Your Question

Problems running neutron net-list

asked 2014-04-09 19:26:20 -0600

paidcritic gravatar image

updated 2014-04-10 18:34:41 -0600

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 {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "", "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: 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: Connection to neutron failed: Maximum attempts reached
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/", line 1183, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/", line 1175, in retry_request
    raise exceptions.ConnectionFailed(reason=_("Maximum attempts reached"))
ConnectionFailed: Connection to neutron failed: Maximum attempts reached
DEBUG: clean_up ListNetwork
DEBUG: got an error: Connection to neutron failed: Maximum attempts reached
edit retag flag offensive 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.

larsks gravatar imagelarsks ( 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.

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

2 answers

Sort by ยป oldest newest most voted

answered 2014-04-09 20:34:40 -0600

larsks gravatar image

updated 2014-04-10 07:53:26 -0600

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...


$ neutron net-list DEBUG
Invalid values_specs DEBUG

This is true for all of the -list commands.


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.

edit flag offensive delete link 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/", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv)

paidcritic gravatar imagepaidcritic ( 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?

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

answered 2014-04-15 19:22:37 -0600

paidcritic gravatar image

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.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-09 19:26:20 -0600

Seen: 3,322 times

Last updated: Apr 15 '14