Koji disk space cleanup

Question for the group, we have a mixture of naming conventions for our external repositories which also has at times resulted in duplicates. I’d like to re-name what we have left to common conventions. The two conventions we have in use right now:

  1. <os>-<os_version>-<project/variant>

Examples:

  • centos-7-os (http://mirror.centos.org/centos/7/os/x86_64/)
  • centos-7-updates (http://mirror.centos.org/centos/7/updates/x86_64/)
  1. <project>-<project_version>-<os>-<os_version>

Examples:

  • puppetlabs-puppet6-rhel-8 (http://yum.puppet.com/puppet6/el/8/x86_64/)
  • flat-ruby27-el8 (http://koji.katello.org/kojifiles/releases/split/yum/koji-modules/koji/staged/x86_64/RHEL-8-001-mod/ruby:2.7/)

We could pick one of the two above conventions and apply it everywhere. We could opt for more of a rule based upon the URL structure of the repository as well:

  1. Name should follow the url structure:

Examples:

  • centos-7-os-x86_64 (http://mirror.centos.org/centos/7/os/x86_64/)
  • centos-7-updates-x86_64 (http://mirror.centos.org/centos/7/updates/x86_64/)
  • puppet6-el-8 (http://yum.puppet.com/puppet6/el/8/x86_64/)
  • RHEL-8-001-mod-ruby-2.7 (http://koji.katello.org/kojifiles/releases/split/yum/koji-modules/koji/staged/x86_64/RHEL-8-001-mod/ruby:2.7/)