Red Hat Bugzilla – Bug 1273302
beaker-log-delete does not delete old jobs if they have no finish time (e.g. Cancelled or Aborted)
Last modified: 2016-01-14 00:32:56 EST
Description of problem:
If a recipe is Cancelled or Aborted before it ever starts, the finish_time will remain NULL. If that happens, the job will be excluded from beaker-log-delete's regular deletion process because it is filtering based on finish_time.
Version-Release number of selected component (if applicable):
we have heaps on beaker-devel
Steps to Reproduce:
1. Create a job with "scratch" retention tag, and then cancel it before it can start the recipe -- finish time should be NULL
2. Wait 30 days *or* if lazy, hack the value of the recipeset.queue_time column in the database to be 30 days in the past
3. Run beaker-log-delete on the server
beaker-log-delete ignores the old cancelled job
Old Cancelled and Aborted jobs should be deleted
Correction... we *had* examples of this on beaker-devel but I tested out my patch on there and so there are deleted already. :-)
Beaker 22.0 has been released.