← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1286240] Re: Glance pruner fails if cached image does not exist

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => icehouse-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1286240

Title:
  Glance pruner fails if cached image does not exist

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  An issue arises if an cached image is manually deleted (rm -rf) from
  the image-cache directory, but not removed from the sqlite db, causing
  the glance-cache-pruner to fail to prune:

  2014-02-28 16:42:11.454 28527 INFO glance.image_cache [-] Image cache loaded driver 'sqlite'.
  2014-02-28 16:42:11.460 28527 DEBUG glance.image_cache [-] Image cache currently 117893357067 bytes over max size. Starting prune to max size of 322122547200  prune /opt/glance/lib/python2.6/site-packages/glance/image_cache/__init__.py:182
  2014-02-28 16:42:11.463 28527 CRITICAL glance [-] [Errno 2] No such file or directory: '/var/lib/glance/image-cache/af98e031-168b-4bd5-99b2-ab184c422c42'

  If the file does not exist, it would be nice to gracefully handle this
  missing image problem and remove it from the cache db, rather than
  failing to prune anything.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1286240/+subscriptions


References