Comment 4 for bug 1052537

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (milestone-proposed)

Reviewed: https://review.openstack.org/13349
Committed: http://github.com/openstack/glance/commit/c4173820b0e5836e1af99a428b140647c1db70af
Submitter: Jenkins
Branch: milestone-proposed

commit c4173820b0e5836e1af99a428b140647c1db70af
Author: Paul Bourke <email address hidden>
Date: Tue Sep 18 12:40:40 2012 +0100

    Fix scrubber start & not scrubbing when not daemon

    1) Scrubber not starting
    When the scrubber is run from the command line or via cron, it would try
    to call it's app object which resulted in a TypeError.

    2) Scrubber not scrubbing
    In the same usage scenario as above, the delete jobs added to the
    starmap are never started. A slight delay is enough to start these.

    Also add a functional test designed to excercise the scrubber when run
    in "regular mode", which covers both these cases. I've run the test
    successfully with 1000 images, which should be enough to prove the
    sleep(0.1) does the trick.

    Fixes bug 1052537.

    Change-Id: If29704d8a425194085b59b7dfd265ffaef16302c