Jump to: navigation, search


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.