Fail to create external network - neutron-server not started

asked 2015-05-15 07:29:01 -0500

cykchee2 gravatar image

Hi All,

I'm installation openstack by following the instructions on the openstack site. I got to the following part

This is the point where it first "Create initial Network" and I'm at the start of creating an external network. After: source then create the external network by:

   # neutron net-create ext-net --shared --router:external=True
    Connection to neutron failed: [Errno 111] Connection refused

This let me to a long debugging session, with many websites on similar problem but still could not find the solution.

First checked if neutron-server is running:

# service neutron-server status
neutron dead but pid file exists

Second tried restarting:

[root@controller mydir]# service neutron-server start
Starting neutron:                                          [  OK  ]
[root@controller mydir]# ps -ef | grep neutron
root      5321  3678  0 22:19 pts/1    00:00:00 grep neutron

so it's not running. Edited /etc/init.d/neutron-server to redirect output

  #daemon --user neutron --pidfile $pidfile "$exec ${configs[@]/#/--config-file } --log-file $logfile &>/dev/null & echo \$! > $pidfile"
    daemon --user neutron --pidfile $pidfile "$exec ${configs[@]/#/--config-file } --log-file $logfile &>/tmp/neutron.log & echo \$! > $pidfile"

then looking at the /tmp/neutron.log, there are some warnings. I'm not sure what to make of these log:

/usr/lib/python2.6/site-packages/paste/deploy/ DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  return pkg_resources.EntryPoint.parse("x=" + s).load(False)
/usr/lib/python2.6/site-packages/stevedore/ DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  plugin = ep.load(require=verify_requirements)

Then going back to another clue in the openstack instructions which says:

[Note]  Note
Unlike other services, Networking typically does not require a separate step to populate the database because the neutron-server service populates it automatically. However, the packages for these distributions sometimes require running the neutron-db-manage command prior to starting the neutron-server service. We recommend attempting to start the service before manually populating the database. If the service returns database errors, perform the following operations:

Configure Networking to use long plug-in names:
# openstack-config --set /etc/neutron/neutron.conf DEFAULT core_plugin neutron.plugins.ml2.plugin.Ml2Plugin
# openstack-config --set /etc/neutron/neutron.conf DEFAULT service_plugins

Populate the database:
# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head" neutron

The first two commands are OK, but the last command had this error

 su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade juno" neutron
No handlers could be found for logger "neutron.common.legacy"
Traceback (most recent call last):
  File "/usr/bin/neutron-db-manage", line 10, in <module>
  File "/usr/lib/python2.6/site-packages/neutron/db/migration/", line 169, in main
  File "/usr/lib/python2.6/site-packages/neutron/db/migration/", line 82, in do_upgrade_downgrade
    do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
  File "/usr/lib/python2.6/site-packages/neutron/db/migration ...
edit retag flag offensive close merge delete


Please do not install an outdated version of OpenStack if you do not really need it, which you shouldn't, also don't edit init files. Please provide output of /var/log/neutron/server.log

Are you using the proper repository, so that you don't install a new version of a client and an old server.

Tobias Urdin gravatar imageTobias Urdin ( 2015-05-15 07:34:22 -0500 )edit