Reviewed: https://review.openstack.org/258527 Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=2e2adb3935bcbf9dc6e100c4ba9a8e1b4bf3a4e6 Submitter: Jenkins Branch: master
commit 2e2adb3935bcbf9dc6e100c4ba9a8e1b4bf3a4e6 Author: Mike Fedosin <mfedo...@mirantis.com> Date: Wed Dec 16 17:05:45 2015 +0300 Fix model sync for SQLite This code fixes the situation when several models are mismatched for SQLite because of type inconsistencies between Integer and BigInteger in sqlalchemy. Change-Id: I52b3a0158db8e3dc48f19509d1f9f80420ee40ea Closes-bug: #1526804 Closes-bug: #1526675 ** Changed in: glance Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1526804 Title: Model sync is broken for SQLite because of BigInteger type mismatch Status in Glance: Fix Released Bug description: Here the output for glance.tests.unit.test_migrations.ModelsMigrationsSyncSQLite.test_models_sync: AssertionError: Models and migration scripts aren't in sync: [ [ ( 'modify_type', None, 'artifact_blobs', 'size', { 'existing_nullable': False, 'existing_server_default': False}, INTEGER(), BigInteger())], [ ( 'modify_type', None, 'artifacts', 'type_version_prefix', { 'existing_nullable': False, 'existing_server_default': False}, INTEGER(), BigInteger())], [ ( 'modify_type', None, 'artifacts', 'version_prefix', { 'existing_nullable': False, 'existing_server_default': False}, INTEGER(), BigInteger())], [ ( 'modify_type', None, 'images', 'size', { 'existing_nullable': True, 'existing_server_default': False}, INTEGER(), BigInteger())], [ ( 'modify_type', None, 'images', 'virtual_size', { 'existing_nullable': True, 'existing_server_default': False}, INTEGER(), BigInteger())]] To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1526804/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp