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/13200 github. com/openstack/ glance/ commit/ 1182871ddde43ff 8721599d7cb22b2 11e09e0108
Committed: http://
Submitter: Jenkins
Branch: master
commit 1182871ddde43ff 8721599d7cb22b2 11e09e0108
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