glance cache rollback causes 'OSError: [Errno 2] No such file or directory '
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Dan Prince |
Bug Description
I'm getting the following stack trace from the Glance sqlite cache driver:
2011-11-09 19:18:18 DEBUG [routes.middleware] Match dict: {'action': u'show', 'controller': <glance.
2011-11-09 19:18:18 DEBUG [glance.
2011-11-09 19:18:18 DEBUG [glance.
2011-11-09 19:18:18 DEBUG [glance.
2011-11-09 19:18:18 DEBUG [eventlet.
File "/usr/lib/
for data in result:
File "/usr/lib/
with self.driver.
File "/usr/lib/
return self.gen.next()
File "/usr/lib/
rollback(e)
File "/usr/lib/
os.
OSError: [Errno 2] No such file or directory
---
This exception masks the root cause of the error (in my case a file system permission issue).
During the rollback we should have a simple exists check to make sure files exist before attempting to rename them.
Changed in glance: | |
assignee: | nobody → Dan Prince (dan-prince) |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-2 → 2012.1 |
Thanks, Dan. Nice catch.