Cause: glance/image_cache/drivers/sqlite.py: class SqliteConnection(sqlite3.Connection):
""" SQLite DB Connection handler that plays well with eventlet, slightly modified from Swift's similar code. """
def __init__(self, *args, **kwargs): self.timeout_seconds = kwargs.get('timeout', DEFAULT_SQL_CALL_TIMEOUT) kwargs['timeout'] = 0 sqlite3.Connection.__init__(self, *args, **kwargs)
If there is no timeout key in kwargs, it will create a new one, caused the above failure. Although this is a pypy compatibility issue, glance could be enhanced to avoid this.
Cause: image_cache/ drivers/ sqlite. py: n(sqlite3. Connection) :
glance/
class SqliteConnectio
"""
SQLite DB Connection handler that plays well with eventlet,
slightly modified from Swift's similar code.
"""
def __init__(self, *args, **kwargs):
self.timeout_ seconds = kwargs. get('timeout' , DEFAULT_ SQL_CALL_ TIMEOUT)
kwargs[ 'timeout' ] = 0
sqlite3. Connection. __init_ _(self, *args, **kwargs)
If there is no timeout key in kwargs, it will create a new one, caused the above failure.
Although this is a pypy compatibility issue, glance could be enhanced to avoid this.