responses fail when image cache fails

Bug #929762 reported by Mark Washenberger on 2012-02-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mark Washenberger

Bug Description

When I accidentally configured glance image cache with a higher limit than the filesystem would support, responses would fail in odd ways. Here's the traceback I saw in glance api logs

2012-02-08 21:20:42 23377 DEBUG [eventlet.wsgi.server] Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/eventlet/", line 347, in handle_one_response
    for data in result:
  File "/usr/lib/python2.6/dist-packages/glance/image_cache/", line 227, in tee_iter
  File "/usr/lib/python2.6/", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python2.6/dist-packages/glance/image_cache/drivers/", line 329, in open_for_write
    yield cache_file
  File "/usr/lib/python2.6/dist-packages/glance/image_cache/", line 225, in tee_iter
IOError: [Errno 28] No space left on device

I understand that one shouldn't misconfigure glance, but it would be nice if a cache failure didn't kill the whole response.

Changed in glance:
assignee: nobody → Mark Washenberger (markwash)
status: New → In Progress
Jay Pipes (jaypipes) on 2012-02-10
Changed in glance:
milestone: none → essex-4
importance: Undecided → Medium

Submitter: Jenkins
Branch: master

commit 481929b5c5dbca90762fe339e9e3224f7628ce2a
Author: Mark Washenberger <email address hidden>
Date: Thu Feb 9 12:59:49 2012 -0500

    Don't fail response if caching failed

    Fixes bug 929762

    Change-Id: I90761b69cc556b14fd4bdb931541804244b653e8

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers