Fix race condition caused by experimental cleanup script

Description

The experimental repo has a cleanup script that is ran every hour via cron. The script is meant to delete old and unused package builds.

The content of the script is as follows:

The problem here is that 'latest' is not filtered out to not be deleted by this script. It is OK to delete it in most cases because then it gets recreated by the 'deploy-to-experimental' job, but there might be a case where 'test-repo_ovirt-experimental_*' can run before this happens, this may cause it to get an empty or partial 'latest' repo.

To remedy this, the script needs to be changed to be the following:

The script itself on the resources server was already changed in-palce, this ticket is so we this change is also "backed up" to the 'infra-puppet' repo.

Activity

Show:

Barak Korren January 17, 2017 at 2:24 PM

patch merged

Barak Korren January 4, 2017 at 3:10 PM

Blocking on code review

Barak Korren January 4, 2017 at 2:00 PM

Fixed

Details

Assignee

Reporter

Priority

Created January 4, 2017 at 1:46 PM
Updated January 30, 2017 at 9:25 AM
Resolved January 17, 2017 at 2:24 PM