Jump to: navigation, search

Neutron/DatabaseMigration

< Neutron
Revision as of 05:01, 22 January 2013 by AkihiroMotoki (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Howto

  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> -m "Description" --autogenerate
  7. Restart Quantum services (if needed)

Thanks Mark

[note] "Description" is also used as a part of a filename of a migration script. First 20+ chars are used. (I am not sure the exact number)