How to clean up the side-tags created by the monitor-gating project

Monitor-gating runs in OpenShift and monitors the packager workflow end to end. Doing this for single build and multi-builds updates by gettings few tests packages go through that workflow.

If something happens and side-tags accumulates in koji, they can be cleaned using the following steps:

  1. Go to https://console-openshift-console.apps.ocp.fedoraproject.org/project-details/ns/monitor-gating (this links points directly to the monitor-gating project)

  2. Access the running pod

  3. Click on the "Terminal" tab to have a shell in that pod

  4. Run the following command:

    python3 /opt/code/clean_up_side_tags.py /opt/config/runner.cfg

It will go through all the side-tags created by this user/keytab and delete them using fedpkg remove-side-tag. It will do this for all but one (which may be in use by the script when the command is ran).