glance-api failed to start with pypy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Yongfeng Du |
Bug Description
I'm trying to run glance with pypy, and found one compatibility problem.
The error message:
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m return cls(app)^M
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m resource = cached_
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m return wsgi.Resource(
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m self.cache = image_cache.
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m self.init_
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m self.configure_
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m self.driver.
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m self.initialize
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m factory=
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m check_same_thread, factory, cached_
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m File "/home/
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^[[00m sqlite3.
^[[01;31m2016-01-26 06:02:27.091 TRACE glance ^[[01;35m^
Changed in glance: | |
assignee: | nobody → Yongfeng Du (dolpherdu) |
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.