yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09218
[Bug 1275352] [NEW] test_migration_utils runs sqlite tests even if no sqlite configured
Public bug reported:
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.
** Affects: nova
Importance: Undecided
Assignee: Matt Riedemann (mriedem)
Status: In Progress
** Tags: db testing
** Changed in: nova
Assignee: (unassigned) => Matt Riedemann (mriedem)
** Changed in: nova
Status: New => In Progress
--
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):
In Progress
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
Follow ups
References