Migrate from OVS plugin to ML2

asked 2013-11-30 16:00:06 -0600

LukasKubin gravatar image

updated 2013-11-30 16:02:44 -0600

Hi, I've just tried to switch Neutron plugin from OVS to ML2. It's an RDO based Havana environment.

I've changed the Neutron config file, created ML2 plugin ini config. Still, I could not start stopped instances.

After seeing the following message in neutron server.log

2013-11-30 22:27:11.601 31507 ERROR neutron.plugins.ml2.plugin [-] Network 4f34bd2c-00b7-4a5c-87d5-a1fd6ea86801 has no segments

I realized there must been more changes done in the database to migrate existing networks intro ML2. Something needs to convert data from tables like ovs_network_bindings or ovs_tunnel_allocations into approprite ML2 tables.

Is there some tool to handle this? Is such kind of migration planned to be performed at all or should we just start with an empty environment?


edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2014-01-06 12:57:17 -0600

rkukura gravatar image

updated 2014-01-06 13:47:50 -0600

The steps to convert an RDO installation from the openvswitch core plugin to the ml2 core plugin are documented at http://openstack.redhat.com/ML2_plugin . This includes configuration as well as DB schema initialization.

Note that these steps result in an empty neutron database. There is a blueprint ( https://blueprints.launchpad.net/neutron/+spec/ml2-deprecated-plugin-migration ) to implement a conversion tool that migrates data from the previous plugin's schema to the ml2 schema, which should preserve existing networks, ports, and other resources.

edit flag offensive delete link more

answered 2014-07-24 18:54:31 -0600

jproulx gravatar image

There is now a conversion tool in Icehouse.

from the Operations Guide which has more details on the upgrade aspect this is the command to convert the Icehouse Neutron database from OVS to ML2:

# python -m neutron.db.migration.migrate_to_ml2 openvswitch \
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-11-30 16:00:06 -0600

Seen: 1,313 times

Last updated: Jul 24 '14