glance.scrubber module

class glance.scrubber.Daemon(wakeup_time=300, threads=100)[source]

Bases: object

start(application)[source]
wait()[source]
class glance.scrubber.ScrubDBQueue[source]

Bases: object

Database-based image scrub queue class.

add_location(image_id, location)[source]

Adding image location to scrub queue.

Parameters:
  • image_id – The opaque image identifier

  • location – The opaque image location

Returns:

A boolean value to indicate success or not

get_all_locations()[source]

Returns a list of image id and location tuple from scrub queue.

Returns:

a list of image id, location id and uri tuple from scrub queue

has_image(image_id)[source]

Returns whether the queue contains an image or not.

Parameters:

image_id – The opaque image identifier

Returns:

a boolean value to inform including or not

class glance.scrubber.Scrubber(store_api)[source]

Bases: object

revert_image_status(image_id)[source]
run(event=None)[source]
glance.scrubber.get_scrub_queue()[source]