glance-cache-cleaner causes 'Driver' object has no attribute 'delete_incomplete_files'

Bug #888382 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Brian Waldon

Bug Description

I'm getting the following exception when trying to run glance-cache-cleaner:

root@glance1:~# glance-cache-cleaner --config-file=/etc/glance/glance-cache.conf
Traceback (most recent call last):
  File "/usr/bin/glance-cache-cleaner", line 74, in <module>
    app.run()
  File "/usr/lib/python2.7/dist-packages/glance/image_cache/cleaner.py", line 35, in run
    self.cache.clean()
  File "/usr/lib/python2.7/dist-packages/glance/image_cache/__init__.py", line 172, in clean
    self.driver.clean()
  File "/usr/lib/python2.7/dist-packages/glance/image_cache/drivers/sqlite.py", line 256, in clean
    self.delete_incomplete_files(older_than)
AttributeError: 'Driver' object has no attribute 'delete_incomplete_files'

Brian Waldon (bcwaldon)
Changed in glance:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/1498
Committed: http://github.com/openstack/glance/commit/0135c4265380988a5a02b1cefa837b919fd1a8f4
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 0135c4265380988a5a02b1cefa837b919fd1a8f4
Author: Brian Waldon <email address hidden>
Date: Thu Nov 10 10:33:07 2011 -0500

    Correcting image cleanup in cache drivers

    Fixes bug 888382. Includes some removal of unused code.

    Change-Id: I53923bcf1fe13d63f7242cf328eb53e37d28285e

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.