<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ilya-<div><br></div><div>Yes you need to create a migration for the LBaaS changes. This helps folks upgrading and in the future should we need to tweak the LBaaS schemas. Try these steps to create a migration:</div><div><br></div><div>1) In Quantum repo $git checkout master<br>2) Run devstack<br>3) quantum-db-manage --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/<path_to_plugin>.ini stamp head<br>4) Stop q-svc<br>5) In Quantum repo $git checkout <your feature branch><br>6) quantum-db-manage --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/<path_to_plugin>.ini revision -m "Add LBaaS model support" --autogenerate<br>7) restart Quantum services</div><div><br></div><div>mark</div><div><br><div><div>On Feb 1, 2013, at 9:44 AM, Ilya Shakhat <<a href="mailto:ishakhat@mirantis.com">ishakhat@mirantis.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, <div><br></div><div>I have a couple of questions related to alembic migrations:</div><div><br></div><div>1) In Grizzly we introduce LBaaS plugin which extends Quantum DB with set of specific tables. Do we need to add specification of these tables into alembic migrations? (taking into account that they are completely new). </div>
<div><br></div><div>2) While investigating how alembic works, I tried to create migration script by the command mentioned at <a href="https://github.com/openstack/quantum/blob/master/quantum/db/migration/README">https://github.com/openstack/quantum/blob/master/quantum/db/migration/README</a>:</div>
<div><br></div><div><i>$ quantum-db-manage --config-file /path/to/quantum.conf --config-file /path/to/plugin/config.ini revision -m "description of revision" --autogenerate</i></div><div><br></div><div>
but it returns:</div><div><br></div><div><div><i>INFO [alembic.migration] Context impl SQLiteImpl.</i></div><div><i>INFO [alembic.migration] Will assume transactional DDL.</i></div><div><i> Target database is not up to date.</i></div>
</div><div><br></div><div>what do I do wrong?</div><div><br></div><div><br></div><div>Thanks in advance,</div><div>Ilya</div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></body></html>