[openstack-dev] [Murano] SQLite support - drop or not?
rkamaldinov at mirantis.com
Fri Jan 23 20:39:27 UTC 2015
On Fri, Jan 23, 2015 at 9:04 PM, Andrew Pashkin <apashkin at mirantis.com> wrote:
> Current situation with SQLite support:
> - Migration tests does not run on SQLIte.
> - At the same time migrations themselves support SQLite (with bugs).
> Today I came across this bug:
> Error during execution of database downgrade
> We can resolve this bug by hardening SQLite support, in that case:
> - We need to fix migrations and make them support SQLite without bugs, and
> then continuously make some effort to maintain this support (manually
> writing migrations and test cases for them).
> - Also need to introduce migration tests run on SQLite.
> We also can drop SQLite support and in this case:
> - We just factor out all that related to SQLite from migrations one time and
> set this bug as "Won't fix".
> Let's discuss that.
I agree that we don't need to support SQLite in migrations. As it was
already said in , there is no point in running DB migrations
Here is what I suggest to do:
1. Use ModelsMigrationsSync from  in tests to make sure that
SQLAlchemy models are in sync with migrations. Usage example can be
found at 
2. Populate DB schema from SQLAlchemy models in unit-tests which
require access to DB
3. Wipe out everything related to SQLite from DB migrations code
4. Recommend all developers to use MySQL when they run Murano locally
5. For those who still insist on SQLite we can provide a command line
option which would generate database schema from SQLAlchemy metadata.
This should be declared as development only feature, not supported for
any kind of production deployments
More information about the OpenStack-dev