Fail to create external network - neutron-server not started

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

cykchee2 gravatar image

Hi All,

I'm installation openstack by following the instructions on the openstack site. I got to the following part http://docs.openstack.org/icehouse/in...

This is the point where it first "Create initial Network" and I'm at the start of creating an external network. After: source admin-openrc.sh 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/loadwsgi.py:22: 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/extension.py:177: 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 neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

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>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 169, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", 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 ...
(more)
edit retag flag offensive close merge delete

Comments

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 -0600 )edit