Ask Your Question
0

How does Neutron's db schema get created in Icehouse?

asked 2014-04-30 17:47:23 -0500

anonymous user

Anonymous

I'm doing an Icehouse install on Ubuntu 14.04 and the below guide shows how to setup Neutron on the controller. http://docs.openstack.org/icehouse/install-guide/install/apt/content/neutron-ml2-controller-node.html (http://docs.openstack.org/icehouse/in...)

However, there is no 'neutron db_sync' ( that I'm aware of ) . My neutron db is created but it has no schema .

When/Where does the schema get installed ? Thanks,

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-28 02:58:14 -0500

I ran into further issues having followed the http://docs.openstack.org/icehouse/install-guide/install/apt/content/neutron-ml2-controller-node.html (OpenStack Icehouse Neutron Ml2 guide):

this is incorrect in the doco:

core_plugin = ml2

and should be:

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin

also had to comment out:

#service_plugins = router

which is also in the documentation. (perhaps my install is still broken, still working on it.)

once these changes were made, the following command (also missing from documentation) worked on Ubuntu 14.04:

neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head

i hope this helps someone.

edit flag offensive delete link more
-1

answered 2014-05-01 09:54:58 -0500

larsks gravatar image

updated 2014-05-01 09:55:43 -0500

There is a neutron-db-manage command. You should be able to set up the database by running something like:

neutron-db-manage --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugin.ini \
  upgrade head

This will create the database schema and the appropriate table for tracking the schema version.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-04-30 17:47:23 -0500

Seen: 950 times

Last updated: Aug 28 '14