From 2ca267af40fccb3df2c818281e4c0b3505fcf30e Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 6 Mar 2023 15:23:49 +1100 Subject: [PATCH] mirror-update: stop mirroring old atomic version We should be past the point we need to mirror this any more. magnum has moved on even in the oldest victoria branch. Stop mirroring and remove the old atomic directory. [1] https://opendev.org/openstack/magnum/src/branch/stable/victoria/devstack/plugin.sh#L16 Change-Id: I43df5d7d4a827d2e8fc4483b65c4e00c13d53c77 --- .../mirror-update/files/fedora-mirror-update | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index e0fa57ce01..8a7560fdc9 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -38,7 +38,7 @@ echo_ts "----- START FEDORA MIRROR RSYNC RUN -----" # Purge old releases echo_ts "Purging old mirrors" -$K5START rm -rf $BASE/releases/34 $BASE/updates/34 +$K5START rm -rf $BASE/atomic for REPO in releases/35 releases/36 development/rawhide; do if ! [ -f $BASE/$REPO ]; then @@ -96,32 +96,6 @@ for REPO in updates/35 updates/36; do echo_ts "... done" done -# Atomic is EOL but this particular image is used by magnum. We mirror -# only this specific version. -MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/alt/atomic/stable/Fedora-29-updates-20190820.0" - -if ! [ -f $BASE/atomic/stable/Fedora-29-updates-20190820.0 ]; then - $K5START mkdir -p $BASE/atomic/stable/Fedora-29-updates-20190820.0 -fi - -echo_ts "Running rsync atomic..." -$K5START rsync -rltvz \ - --delete \ - --delete-excluded \ - --exclude="testing/" \ - --exclude="Atomic/" \ - --exclude="ppc64le/" \ - --exclude="images/*.raw.xz" \ - --exclude="images/*.box" \ - --exclude="images/*.iso" \ - --exclude="images/efiboot.img" \ - --exclude="images/install.img" \ - --exclude="iso/*.iso" \ - --exclude="os/EFI/BOOT/" \ - --exclude="pxeboot/" \ - --exclude="isolinux/" \ - $MIRROR/ $BASE/atomic/stable/Fedora-29-updates-20190820.0/ -echo_ts "... done" # TODO(pabelanger): Validate rsync process date --iso-8601=ns | $K5START tee $BASE/timestamp.txt