Jump to: navigation, search

Neutron/DatabaseMigration

< Neutron
Revision as of 02:25, 22 August 2013 by Amotoki (talk | contribs)

Neutron Database Migration

When a developer submits a patch to Neutron that changes the database model, a database migration script is required.

Howto

  1. Neutron repo $git checkout master
  2. Run devstack (with your plugin)
  3. Stop neutron services
  4. Neutron repo $git checkout <your feature branch>
  5. neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file <plugin.ini> revision -m "Description" --autogenerate
  6. Restart Neutron services (if needed)

[note] First 20 chars of "Description" is used as a part of a filename of a migration script.