Comment 1 for bug 1538117

Revision history for this message
Yongfeng Du (dolpherdu) wrote :

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.