Jump to: navigation, search

Difference between revisions of "Neutron/DatabaseMigration"

Line 6: Line 6:
a database migration script is required.
a database migration script is required.
* Detail description : https://github.com/openstack/quantum/blob/master/quantum/db/migration/README
* Detail description : https://github.com/openstack/quantum/blob/master/neutron/db/migration/README
== Howto ==
== Howto ==

Revision as of 05:13, 15 July 2013

Quantum Database Migration

Now Quantum supports database migration from Quantum Folsom to Quantum Grizzly+. When a developer submits a patch to Quantum that changes the database model, a database migration script is required.


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

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