Re: [openstack-dev] [Nutron] Extending database schema from 3rd-party plugin

2015-05-13 Thread Anna Kamyshnikova
Hi, Alexey In fact alembic has autogenerate option, so if you created the model you can use something like neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini revision --autogenerate and alembic will create missing script itself. If you

[openstack-dev] [Nutron] Extending database schema from 3rd-party plugin

2015-05-12 Thread Alexey I. Froloff
Greetings! I am developing ML2 type/mech plugin for some very special environment. Because this environment is very special (using addressing based on physical hypervisor location), it will be separate package, I don't plan to alter Neutron code. And this plugin needs to store some information

Re: [openstack-dev] [Nutron] Extending database schema from 3rd-party plugin

2015-05-12 Thread Kevin Benton
If you have a pretty simple schema that isn't tightly integrated into the broader neutron schema, you could could always just resort to detecting of the schema during your ml2 driver initialization and just create the schema with SQL statements right then. The advantage to that approach is that