Run scripts

Start copr backend

Script to run copr-backend /usr/bin/copr_be.py Uses backend config with default location /etc/copr/copr-be.conf.

Prune repository

To prune result builds use run/copr_prune_results.py. Internally it would invoke sh script run/copr_find_obsolete_builds.sh

copr_prune_results.py

Clean ups old builds. Don’t affect projects with disabled auto_createrepo option.

Doesn’t have startup options. Uses backend config with default location /etc/copr/copr-be.conf. Can be changed by setting environment variable BACKEND_CONFIG

copr_find_obsolete_builds.sh

Finds folders in CHROOTPATH, with built package which is older than DAYS and there is a higher version in a chroot repository.

copr_find_obsolete_builds.sh CHROOTPATH DAYS

VM info

To get current copr-backend view on used VM use: run/copr_get_vm_info.py

Consecutive builds fails

To monitor service disruption use run/check_consecutive_builds_fails.py. It checks if copr-backend has too many interrupted builds. This script is aimed to be used by nagios nrpe check.

Return code meanings:
  • 0: OK
  • 1: Warning
  • 2: Failure