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.
Reviewed: https:/ /review. openstack. org/13349 github. com/openstack/ glance/ commit/ c4173820b0e5836 e1af99a428b1406 47c1db70af
Committed: http://
Submitter: Jenkins
Branch: milestone-proposed
commit c4173820b0e5836 e1af99a428b1406 47c1db70af
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: If29704d8a42519 4085b59b7dfd265 ffaef16302c