← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1275352] Re: test_migration_utils runs sqlite tests even if no sqlite configured

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1275352

Title:
  test_migration_utils runs sqlite tests even if no sqlite configured

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  There are several jobs that only run if you have sqlite configured in
  nova.tests.db.test_migration_utils but there are two which will run
  and fail if you don't have sqlite configured:

  ======================================================================
  ERROR: nova.tests.db.test_migration_utils.TestMigrationUtils.test_check_shadow_table_with_unsupported_type
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'': {{{INFO [nova.tests.db.test_migrations] Creating DB2 schema nova.novatstu}}}

  Traceback (most recent call last):
    File "/root/nova-es/nova/tests/db/test_migration_utils.py", line 391, in test_check_shadow_table_with_unsupported_type
      engine = self.engines['sqlite']
  KeyError: 'sqlite'

  
  ======================================================================
  ERROR: nova.tests.db.test_migration_utils.TestMigrationUtils.test_util_drop_unique_constraint_with_not_supported_sqlite_type
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'': {{{INFO [nova.tests.db.test_migrations] Creating DB2 schema nova.novatstu}}}

  Traceback (most recent call last):
    File "/root/nova-es/nova/tests/db/test_migration_utils.py", line 215, in test_util_drop_unique_constraint_with_not_supported_sqlite_type
      for i in xrange(0, len(values)):
  UnboundLocalError: local variable 'values' referenced before assignment

  Those should be skipped if sqlite isn't configured like the other
  sqlite-specific tests.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1275352/+subscriptions


References