OpenStack Image Registry and Delivery Service (Glance)

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

Reported by Dan Prince on 2011-11-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
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) on 2011-11-10
Changed in glance:
assignee: nobody → Brian Waldon (bcwaldon)
status: New → In Progress
importance: Undecided → Medium

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) on 2011-12-14
Changed in glance:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers