From a0ae3481dde115de12609c74b79688e58342918e Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 18 Mar 2024 15:46:28 -0700 Subject: [PATCH] Update opensuse mirror script to more completely clean up There are a number of issues with opensuse mirroring content cleanup that this change aims to address. First up we fix the prefix for the CentOS 7 networking content; it needed a repositories/ prefix. At the same time we don't bother deleting the leaf data and instead delete the more top level directory since we're cleaning this all up. We then apply this top level cleanup to all of the repositories, distributions, and updates. This is largely a noop (just some directory removals) except in the case of update/ which still contains leap 15.2 update packages. These were apparently missed in the initial opensuse cleaup. After this lands we should end up with a largely empty volume. Change-Id: Ic854fcecd1a0fabc388640a33da7e4e1f9ec07c0 --- .../roles/mirror-update/files/opensuse-mirror-update | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/playbooks/roles/mirror-update/files/opensuse-mirror-update b/playbooks/roles/mirror-update/files/opensuse-mirror-update index c38d6eee21..e7384bb379 100755 --- a/playbooks/roles/mirror-update/files/opensuse-mirror-update +++ b/playbooks/roles/mirror-update/files/opensuse-mirror-update @@ -33,13 +33,10 @@ OBS_REPOS=() K5START="k5start -t -f /etc/opensuse.keytab service/opensuse-mirror -- $TIMEOUT" # NOTE(hwoarang): Ensure old distros are not mirrored aymore -for REPO in distribution/leap/15.1 update/leap/15.1 distribution/leap/15.2 \ - repositories/Cloud:/OpenStack:/Stein/openSUSE_Leap_15.1 \ - repositories/Cloud:/OpenStack:/Master/openSUSE_Leap_15.1 \ - repositories/Cloud:/OpenStack:/Ussuri/openSUSE_Leap_15.2 \ - repositories/Cloud:/OpenStack:/Master/openSUSE_Leap_15.2 \ - network:/ha-clustering:/Stable/CentOS_CentOS-7 \ - update/tumbleweed tumbleweed ; do +for REPO in distribution/leap update/leap \ + repositories/Cloud: \ + repositories/Virtualization: \ + repositories/network: ; do if [ -d $BASE/$REPO ]; then $K5START rm -rf $BASE/$REPO fi